// When running miri tests, we need to generate MIR for all libraries
if env::var("TEST_MIRI").ok().map_or(false, |val| val == "true") {
cmd.arg("-Zalways-encode-mir");
- if stage != "0" {
- cmd.arg("-Zmiri");
- }
cmd.arg("-Zmir-emit-validate=1");
}
if build.config.rust_debuginfo_tests {
flags.push("-g".to_string());
}
- flags.push("-Zmiri -Zunstable-options".to_string());
+ flags.push("-Zunstable-options".to_string());
flags.push(build.config.cmd.rustc_args().join(" "));
if let Some(linker) = build.linker(target) {
"print some statistics about MIR"),
always_encode_mir: bool = (false, parse_bool, [TRACKED],
"encode MIR of all functions into the crate metadata"),
- miri: bool = (false, parse_bool, [TRACKED],
- "check the miri const evaluator against the old ctfe"),
osx_rpath_install_name: bool = (false, parse_bool, [TRACKED],
"pass `-install_name @rpath/...` to the macOS linker"),
sanitizer: Option<Sanitizer> = (None, parse_sanitizer, [TRACKED],