We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
cargo miri run
1 parent d0e3b42 commit 542ee0bCopy full SHA for 542ee0b
cargo-miri/bin.rs
@@ -871,6 +871,14 @@ fn phase_rustc(mut args: env::Args, phase: RustcPhase) {
871
cmd.arg("-C").arg("panic=abort");
872
}
873
} else {
874
+ if !print {
875
+ // When we're running `cargo-miri` from `x.py` we need to pass the sysroot explicitly as rustc
876
+ // can't figure out the sysroot on its own unless it's from rustup.
877
+ if let Some(sysroot) = std::env::var_os("SYSROOT") {
878
+ cmd.arg("--sysroot").arg(sysroot);
879
+ }
880
881
+
882
// For host crates or when we are printing, just forward everything.
883
cmd.args(args);
884
0 commit comments