Skip to content

Commit 5b71eb2

Browse files
committed
Fix Miri sysroot for x run
Miri no longer respects `MIRI_SYSROOT` and wants to be treated like a REAL rustc, with `--sysroot`. *pats Miri* sure Miri, just for you :3.
1 parent a316785 commit 5b71eb2

File tree

1 file changed

+1
-1
lines changed
  • src/bootstrap/src/core/build_steps

1 file changed

+1
-1
lines changed

src/bootstrap/src/core/build_steps/run.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ impl Step for Miri {
154154
miri.args(builder.config.args());
155155

156156
// miri tests need to know about the stage sysroot
157-
miri.env("MIRI_SYSROOT", &miri_sysroot);
157+
miri.arg("--sysroot").arg(miri_sysroot);
158158

159159
let mut miri = Command::from(miri);
160160
builder.run(&mut miri);

0 commit comments

Comments
 (0)