Skip to content

Commit

Permalink
when testing Miri, compile libstd for Miri
Browse files Browse the repository at this point in the history
  • Loading branch information
RalfJung committed Apr 25, 2019
1 parent 54aefc6 commit 16ad977
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/bootstrap/bin/rustc.rs
Expand Up @@ -262,6 +262,7 @@ fn main() {
// The flags here should be kept in sync with `add_miri_default_args`
// in miri's `src/lib.rs`.
cmd.arg("-Zalways-encode-mir");
cmd.arg("--cfg=miri");
// These options are preferred by miri, to be able to perform better validation,
// but the bootstrap compiler might not understand them.
if stage != "0" {
Expand Down

0 comments on commit 16ad977

Please sign in to comment.