Skip to content

Commit

Permalink
Fix Miri sysroot for x run
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Noratrieb committed Jun 12, 2024
1 parent a316785 commit 20fb258
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bootstrap/src/core/build_steps/run.rs
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ impl Step for Miri {
miri.args(builder.config.args());

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

let mut miri = Command::from(miri);
builder.run(&mut miri);
Expand Down

0 comments on commit 20fb258

Please sign in to comment.