Skip to content

Commit 6619ed8

Browse files
committed
bin/miri.rs looks for RUST_SYSROOT, so should bin/cargo-miri.rs
1 parent f85c7a2 commit 6619ed8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/bin/cargo-miri.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ fn main() {
103103
let sys_root = if let (Some(home), Some(toolchain)) = (home, toolchain) {
104104
format!("{}/toolchains/{}", home, toolchain)
105105
} else {
106-
option_env!("SYSROOT")
106+
option_env!("RUST_SYSROOT")
107107
.map(|s| s.to_owned())
108108
.or_else(|| {
109109
Command::new("rustc")
@@ -114,7 +114,7 @@ fn main() {
114114
.and_then(|out| String::from_utf8(out.stdout).ok())
115115
.map(|s| s.trim().to_owned())
116116
})
117-
.expect("need to specify SYSROOT env var during miri compilation, or use rustup or multirust")
117+
.expect("need to specify RUST_SYSROOT env var during miri compilation, or use rustup or multirust")
118118
};
119119

120120
// this conditional check for the --sysroot flag is there so users can call `cargo-clippy` directly

0 commit comments

Comments
 (0)