We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f811f14 commit 84e7ae2Copy full SHA for 84e7ae2
1 file changed
src/bootstrap/test.rs
@@ -452,7 +452,14 @@ impl Step for Miri {
452
453
cargo.add_rustc_lib_path(builder, compiler);
454
455
- if !try_run(builder, &mut cargo.into()) {
+ let mut cargo = Command::from(cargo);
456
+ if !try_run(builder, &mut cargo) {
457
+ return;
458
+ }
459
+
460
+ // # Run `cargo test` with `-Zmir-opt-level=4`.
461
+ cargo.env("MIRIFLAGS", "-O -Zmir-opt-level=4");
462
463
return;
464
}
465
0 commit comments