Skip to content

Commit 3f86ec9

Browse files
committed
use stage 1 compiler only for stamps
1 parent e1d86ee commit 3f86ec9

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
@@ -720,29 +720,29 @@ impl<'a> Builder<'a> {
720720
// This is for the original compiler, but if we're forced to use stage 1, then
721721
// std/test/rustc stamps won't exist in stage 2, so we need to get those from stage 1, since
722722
// we copy the libs forward.
723-
let compiler = if self.force_use_stage1(compiler, target) {
723+
let cmp = if self.force_use_stage1(compiler, target) {
724724
self.compiler(1, compiler.host)
725725
} else {
726726
compiler
727727
};
728728

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

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

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

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

0 commit comments

Comments
 (0)