return;
}
- // # Run `cargo test` with `-Zmir-opt-level=4`.
- cargo.env("MIRIFLAGS", "-O -Zmir-opt-level=4");
- if !try_run(builder, &mut cargo) {
- return;
- }
-
// # Done!
builder.save_toolstate("miri", ToolState::TestPass);
} else {
let test_kind = self.test_kind;
let target = self.host;
- let compiler = if builder.config.download_rustc {
+ let compiler = if builder.download_rustc() {
builder.compiler(builder.top_stage, target)
} else {
// Use the previous stage compiler to reuse the artifacts that are
// with.
//
// Note that this set the host libdir for `download_rustc`, which uses a normal rust distribution.
- let libdir = if builder.config.download_rustc {
+ let libdir = if builder.download_rustc() {
builder.rustc_libdir(compiler)
} else {
builder.sysroot_libdir(compiler, target).to_path_buf()