diff options
| author | Collins Abitekaniza <abtcolns@gmail.com> | 2018-07-06 22:56:13 +0300 |
|---|---|---|
| committer | Mark Rousskov <mark.simulacrum@gmail.com> | 2018-09-12 13:31:49 -0600 |
| commit | c22c7098ca94a629ee3460daaeb338b55f54fb36 (patch) | |
| tree | 8301e35e68467d2d1b6b442925fc1af6c1202b3a | |
| parent | c0af0b0213529437ed60a9df6faa91383eaf7faa (diff) | |
| download | rust-c22c7098ca94a629ee3460daaeb338b55f54fb36.tar.gz rust-c22c7098ca94a629ee3460daaeb338b55f54fb36.zip | |
use stage 1 compiler only for stamps
| -rw-r--r-- | src/bootstrap/builder.rs | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/bootstrap/builder.rs b/src/bootstrap/builder.rs index 8afe162c17c..ab0d9a06641 100644 --- a/src/bootstrap/builder.rs +++ b/src/bootstrap/builder.rs @@ -721,29 +721,29 @@ impl<'a> Builder<'a> { // This is for the original compiler, but if we're forced to use stage 1, then // std/test/rustc stamps won't exist in stage 2, so we need to get those from stage 1, since // we copy the libs forward. - let compiler = if self.force_use_stage1(compiler, target) { + let cmp = if self.force_use_stage1(compiler, target) { self.compiler(1, compiler.host) } else { compiler }; let libstd_stamp = match cmd { - "check" => check::libstd_stamp(self, compiler, target), - _ => compile::libstd_stamp(self, compiler, target), + "check" => check::libstd_stamp(self, cmp, target), + _ => compile::libstd_stamp(self, cmp, target), }; let libtest_stamp = match cmd { - "check" => check::libtest_stamp(self, compiler, target), - _ => compile::libstd_stamp(self, compiler, target), + "check" => check::libtest_stamp(self, cmp, target), + _ => compile::libstd_stamp(self, cmp, target), }; let librustc_stamp = match cmd { - "check" => check::librustc_stamp(self, compiler, target), - _ => compile::librustc_stamp(self, compiler, target), + "check" => check::librustc_stamp(self, cmp, target), + _ => compile::librustc_stamp(self, cmp, target), }; if cmd == "doc" { - if mode == Mode::Rustc || mode == Mode::ToolRustc { + if mode == Mode::Rustc || mode == Mode::ToolRustc || mode == Mode::Codegen { // This is the intended out directory for compiler documentation. my_out = self.compiler_doc_out(target); } |
