Skip to content

Commit 38d277e

Browse files
committed
miri: fix sysroot build
1 parent 47e065b commit 38d277e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/tools/miri/cargo-miri/src/setup.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,9 @@ pub fn setup(
136136
// But keep the overflow checks, they are cheap. This completely overwrites flags
137137
// the user might have set, which is consistent with normal `cargo build` that does
138138
// not apply `RUSTFLAGS` to the sysroot either.
139-
let rustflags = &["-Cdebug-assertions=off", "-Coverflow-checks=on"];
139+
// We also need to set `force-unstable-if-unmarked` to ensure the sysroot builds.
140+
let rustflags =
141+
&["-Cdebug-assertions=off", "-Coverflow-checks=on", "-Zforce-unstable-if-unmarked"];
140142

141143
let mut after_build_output = String::new(); // what should be printed when the build is done.
142144
let notify = || {

0 commit comments

Comments
 (0)