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 effffd8 commit d213c64Copy full SHA for d213c64
src/bin/cargo-miri.rs
@@ -141,6 +141,13 @@ fn test_sysroot_consistency() {
141
.unwrap_or_else(|_| panic!("Failed to canonicalize sysroot: {}", stdout))
142
}
143
144
+ // We let the user skip this check if they really want to.
145
+ // (`bootstrap` needs this because Miri gets built by the stage1 compiler
146
+ // but run with the stage2 sysroot.)
147
+ if std::env::var("MIRI_SKIP_SYSROOT_CHECK").is_ok() {
148
+ return;
149
+ }
150
+
151
let rustc_sysroot = get_sysroot(Command::new("rustc"));
152
let miri_sysroot = get_sysroot(Command::new(find_miri()));
153
0 commit comments