Skip to content

Commit 16ad977

Browse files
committed
when testing Miri, compile libstd for Miri
1 parent 54aefc6 commit 16ad977

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/bootstrap/bin/rustc.rs

+1
Original file line numberDiff line numberDiff line change
@@ -262,6 +262,7 @@ fn main() {
262262
// The flags here should be kept in sync with `add_miri_default_args`
263263
// in miri's `src/lib.rs`.
264264
cmd.arg("-Zalways-encode-mir");
265+
cmd.arg("--cfg=miri");
265266
// These options are preferred by miri, to be able to perform better validation,
266267
// but the bootstrap compiler might not understand them.
267268
if stage != "0" {

0 commit comments

Comments
 (0)