Add verify-llvm-ir flag to config.toml

This commit is contained in:
Nikita Popov
2018-06-12 21:21:29 +02:00
parent 22cf833dd1
commit 3f18a41333
4 changed files with 14 additions and 0 deletions

View File

@@ -898,6 +898,10 @@ impl<'a> Builder<'a> {
cargo.env("RUSTC_BACKTRACE_ON_ICE", "1");
}
if self.config.rust_verify_llvm_ir {
cargo.env("RUSTC_VERIFY_LLVM_IR", "1");
}
cargo.env("RUSTC_VERBOSE", format!("{}", self.verbosity));
// in std, we want to avoid denying warnings for stage 0 as that makes cfg's painful.