-
Notifications
You must be signed in to change notification settings - Fork 248
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enable calling build.rs directly from std/build.rs (#556)
Enable calling build.rs directly from std/build.rs and call buildscript in `as-if-std` buildscript to test that it will work during bootstrap.
- Loading branch information
Showing
3 changed files
with
22 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,11 @@ | ||
// backtrace-rs requires a feature check on Android targets, so | ||
// we need to run its build.rs as well. | ||
#[allow(unused_extern_crates)] | ||
#[path = "../../build.rs"] | ||
mod backtrace_build_rs; | ||
|
||
fn main() { | ||
println!("cargo:rustc-cfg=backtrace_in_libstd"); | ||
|
||
backtrace_build_rs::main(); | ||
} |