From 16ad9777b8afd3991b4501e602a04e5e40214b56 Mon Sep 17 00:00:00 2001 From: Ralf Jung Date: Thu, 25 Apr 2019 18:47:36 +0200 Subject: [PATCH] when testing Miri, compile libstd for Miri --- src/bootstrap/bin/rustc.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/bootstrap/bin/rustc.rs b/src/bootstrap/bin/rustc.rs index a8f0d24ce63..383b3a3cf0a 100644 --- a/src/bootstrap/bin/rustc.rs +++ b/src/bootstrap/bin/rustc.rs @@ -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" { -- 2.44.0