Skip to content

Commit

Permalink
Rerun build script on RUSTC_BOOTSTRAP change
Browse files Browse the repository at this point in the history
  • Loading branch information
dtolnay committed Dec 25, 2023
1 parent 5cad3bf commit b91db55
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 b91db55

Please sign in to comment.