Skip to content

Commit c4a654d

Browse files
committed
bootstrap: get rid of TEST_MIRI env var
1 parent 2628f57 commit c4a654d

File tree

2 files changed

+0
-15
lines changed

2 files changed

+0
-15
lines changed

src/bootstrap/bin/rustc.rs

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -285,20 +285,6 @@ fn main() {
285285
}
286286
}
287287

288-
// When running miri tests, we need to generate MIR for all libraries
289-
if env::var("TEST_MIRI").ok().map_or(false, |val| val == "true") {
290-
// The flags here should be kept in sync with `add_miri_default_args`
291-
// in miri's `src/lib.rs`.
292-
cmd.arg("-Zalways-encode-mir");
293-
cmd.arg("--cfg=miri");
294-
// These options are preferred by miri, to be able to perform better validation,
295-
// but the bootstrap compiler might not understand them.
296-
if stage != "0" {
297-
cmd.arg("-Zmir-emit-retag");
298-
cmd.arg("-Zmir-opt-level=0");
299-
}
300-
}
301-
302288
if let Ok(map) = env::var("RUSTC_DEBUGINFO_MAP") {
303289
cmd.arg("--remap-path-prefix").arg(&map);
304290
}

src/bootstrap/builder.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -981,7 +981,6 @@ impl<'a> Builder<'a> {
981981
PathBuf::from("/path/to/nowhere/rustdoc/not/required")
982982
},
983983
)
984-
.env("TEST_MIRI", self.config.test_miri.to_string())
985984
.env("RUSTC_ERROR_METADATA_DST", self.extended_error_dir());
986985

987986
if let Some(host_linker) = self.linker(compiler.host) {

0 commit comments

Comments
 (0)