Skip to content

Commit

Permalink
Merge pull request #330 from dtolnay/bootstrap
Browse files Browse the repository at this point in the history
Rerun build script on RUSTC_BOOTSTRAP change
  • Loading branch information
dtolnay committed Dec 25, 2023
2 parents 5cad3bf + b91db55 commit 5121cd2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ const PROBE: &str = r#"

fn main() {
if cfg!(feature = "std") {
println!("cargo:rerun-if-env-changed=RUSTC_BOOTSTRAP");

match compile_probe() {
Some(status) if status.success() => println!("cargo:rustc-cfg=backtrace"),
_ => {}
Expand Down

0 comments on commit 5121cd2

Please sign in to comment.