Skip to content

Commit 0adc04c

Browse files
committed
Explain why we don't set --sysroot if --print is passed by the caller
1 parent 68b8037 commit 0adc04c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

cargo-miri/bin.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -871,6 +871,7 @@ fn phase_rustc(mut args: env::Args, phase: RustcPhase) {
871871
cmd.arg("-C").arg("panic=abort");
872872
}
873873
} else {
874+
// For host crates (but not when we are printing), we might still have to set the sysroot.
874875
if !print {
875876
// When we're running `cargo-miri` from `x.py` we need to pass the sysroot explicitly as rustc
876877
// can't figure out the sysroot on its own unless it's from rustup.

0 commit comments

Comments
 (0)