Skip to content

Commit

Permalink
Run Miri test suite with mir-opt-level=4
Browse files Browse the repository at this point in the history
  • Loading branch information
RalfJung committed Mar 27, 2021
1 parent f811f14 commit 84e7ae2
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/bootstrap/test.rs
Expand Up @@ -452,7 +452,14 @@ impl Step for Miri {

cargo.add_rustc_lib_path(builder, compiler);

if !try_run(builder, &mut cargo.into()) {
let mut cargo = Command::from(cargo);
if !try_run(builder, &mut cargo) {
return;
}

// # Run `cargo test` with `-Zmir-opt-level=4`.
cargo.env("MIRIFLAGS", "-O -Zmir-opt-level=4");
if !try_run(builder, &mut cargo) {
return;
}

Expand Down

0 comments on commit 84e7ae2

Please sign in to comment.