Skip to content

Commit 07829bc

Browse files
committed
don't forget to sync these flags with miri
1 parent 8a61d49 commit 07829bc

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/bootstrap/bin/rustc.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -253,6 +253,8 @@ fn main() {
253253

254254
// When running miri tests, we need to generate MIR for all libraries
255255
if env::var("TEST_MIRI").ok().map_or(false, |val| val == "true") {
256+
// The flags here should be kept in sync with `add_miri_default_args`
257+
// in miri's `src/lib.rs`.
256258
cmd.arg("-Zalways-encode-mir");
257259
// These options are preferred by miri, to be able to perform better validation,
258260
// but the bootstrap compiler might not understand them.

0 commit comments

Comments
 (0)