We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d8be714 commit 0d4ef69Copy full SHA for 0d4ef69
src/tools/miri/src/bin/miri.rs
@@ -276,7 +276,7 @@ fn run_compiler(
276
// If no `--sysroot` is given, the `MIRI_SYSROOT` env var is consulted to find where
277
// that sysroot lives, and that is passed to rustc.
278
let sysroot_flag = "--sysroot";
279
- if !args.iter().any(|e| e == sysroot_flag) {
+ if !args.iter().any(|e| e.starts_with(sysroot_flag)) {
280
// Using the built-in default here would be plain wrong, so we *require*
281
// the env var to make sure things make sense.
282
let miri_sysroot = env::var("MIRI_SYSROOT").unwrap_or_else(|_| {
0 commit comments