diff options
| author | Ralf Jung <post@ralfj.de> | 2018-10-24 11:47:17 +0200 |
|---|---|---|
| committer | Ralf Jung <post@ralfj.de> | 2018-10-29 09:05:18 +0100 |
| commit | aafcf2c9422e7e1de2ebefd51d78cf1d07d02cd6 (patch) | |
| tree | 8a2704a03646d186d81c7de32e79a981f3567bd1 /src/bootstrap/bin | |
| parent | 4e88b7363b7858960ccfd87326ece9d00bf4d973 (diff) | |
| download | rust-aafcf2c9422e7e1de2ebefd51d78cf1d07d02cd6.tar.gz rust-aafcf2c9422e7e1de2ebefd51d78cf1d07d02cd6.zip | |
Emit Retag statements, kill Validate statements
Also "rename" -Zmir-emit-validate to -Zmir-emit-retag, which is just a boolean (yes or no).
Diffstat (limited to 'src/bootstrap/bin')
| -rw-r--r-- | src/bootstrap/bin/rustc.rs | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/bootstrap/bin/rustc.rs b/src/bootstrap/bin/rustc.rs index b6764c1aaea..07a05aeae5d 100644 --- a/src/bootstrap/bin/rustc.rs +++ b/src/bootstrap/bin/rustc.rs @@ -254,7 +254,12 @@ fn main() { // When running miri tests, we need to generate MIR for all libraries if env::var("TEST_MIRI").ok().map_or(false, |val| val == "true") { cmd.arg("-Zalways-encode-mir"); - cmd.arg("-Zmir-emit-validate=1"); + // These options are preferred by miri, to be able to perform better validation, + // but the bootstrap compiler might not understand them. + if stage != "0" { + cmd.arg("-Zmir-emit-retag"); + cmd.arg("-Zmir-opt-level=0"); + } } // Force all crates compiled by this compiler to (a) be unstable and (b) |
