Skip to content

Commit 4cc16a5

Browse files
committed
tame unexpected_cfgs
1 parent a4e601f commit 4cc16a5

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/tools/miri/build.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
fn main() {
22
// Don't rebuild miri when nothing changed.
33
println!("cargo:rerun-if-changed=build.rs");
4-
// Re-export the TARGET environment variable so it can
5-
// be accessed by miri.
4+
// Re-export the TARGET environment variable so it can be accessed by miri. Needed to know the
5+
// "host" triple inside Miri.
66
let target = std::env::var("TARGET").unwrap();
77
println!("cargo:rustc-env=TARGET={target}");
8+
// Allow some cfgs.
9+
println!("cargo::rustc-check-cfg=cfg(bootstrap)");
810
}

0 commit comments

Comments
 (0)