]> git.lizzy.rs Git - rust.git/commitdiff
when testing Miri, compile libstd for Miri
authorRalf Jung <post@ralfj.de>
Thu, 25 Apr 2019 16:47:36 +0000 (18:47 +0200)
committerRalf Jung <post@ralfj.de>
Thu, 25 Apr 2019 16:47:36 +0000 (18:47 +0200)
src/bootstrap/bin/rustc.rs

index a8f0d24ce63db9de984bdd36fa4c4f240268fbea..383b3a3cf0ad588d23dfaea5b180129b29d1d218 100644 (file)
@@ -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" {