We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent daa6fc5 commit fee0430Copy full SHA for fee0430
build.rs
@@ -1,8 +1,10 @@
1
fn main() {
2
// Don't rebuild miri when nothing changed.
3
println!("cargo:rerun-if-changed=build.rs");
4
- // Re-export the TARGET environment variable so it can
5
- // be accessed by miri.
+ // Re-export the TARGET environment variable so it can be accessed by miri. Needed to know the
+ // "host" triple inside Miri.
6
let target = std::env::var("TARGET").unwrap();
7
println!("cargo:rustc-env=TARGET={target}");
8
+ // Allow some cfgs.
9
+ println!("cargo::rustc-check-cfg=cfg(bootstrap)");
10
}
0 commit comments