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.
1 parent f85c7a2 commit 6619ed8Copy full SHA for 6619ed8
src/bin/cargo-miri.rs
@@ -103,7 +103,7 @@ fn main() {
103
let sys_root = if let (Some(home), Some(toolchain)) = (home, toolchain) {
104
format!("{}/toolchains/{}", home, toolchain)
105
} else {
106
- option_env!("SYSROOT")
+ option_env!("RUST_SYSROOT")
107
.map(|s| s.to_owned())
108
.or_else(|| {
109
Command::new("rustc")
@@ -114,7 +114,7 @@ fn main() {
114
.and_then(|out| String::from_utf8(out.stdout).ok())
115
.map(|s| s.trim().to_owned())
116
})
117
- .expect("need to specify SYSROOT env var during miri compilation, or use rustup or multirust")
+ .expect("need to specify RUST_SYSROOT env var during miri compilation, or use rustup or multirust")
118
};
119
120
// this conditional check for the --sysroot flag is there so users can call `cargo-clippy` directly
0 commit comments