Skip to content

Commit c22c709

Browse files
collin5Mark-Simulacrum
authored andcommitted
use stage 1 compiler only for stamps
1 parent c0af0b0 commit c22c709

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/bootstrap/builder.rs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -721,29 +721,29 @@ impl<'a> Builder<'a> {
721721
// This is for the original compiler, but if we're forced to use stage 1, then
722722
// std/test/rustc stamps won't exist in stage 2, so we need to get those from stage 1, since
723723
// we copy the libs forward.
724-
let compiler = if self.force_use_stage1(compiler, target) {
724+
let cmp = if self.force_use_stage1(compiler, target) {
725725
self.compiler(1, compiler.host)
726726
} else {
727727
compiler
728728
};
729729

730730
let libstd_stamp = match cmd {
731-
"check" => check::libstd_stamp(self, compiler, target),
732-
_ => compile::libstd_stamp(self, compiler, target),
731+
"check" => check::libstd_stamp(self, cmp, target),
732+
_ => compile::libstd_stamp(self, cmp, target),
733733
};
734734

735735
let libtest_stamp = match cmd {
736-
"check" => check::libtest_stamp(self, compiler, target),
737-
_ => compile::libstd_stamp(self, compiler, target),
736+
"check" => check::libtest_stamp(self, cmp, target),
737+
_ => compile::libstd_stamp(self, cmp, target),
738738
};
739739

740740
let librustc_stamp = match cmd {
741-
"check" => check::librustc_stamp(self, compiler, target),
742-
_ => compile::librustc_stamp(self, compiler, target),
741+
"check" => check::librustc_stamp(self, cmp, target),
742+
_ => compile::librustc_stamp(self, cmp, target),
743743
};
744744

745745
if cmd == "doc" {
746-
if mode == Mode::Rustc || mode == Mode::ToolRustc {
746+
if mode == Mode::Rustc || mode == Mode::ToolRustc || mode == Mode::Codegen {
747747
// This is the intended out directory for compiler documentation.
748748
my_out = self.compiler_doc_out(target);
749749
}

0 commit comments

Comments
 (0)