Skip to content

Commit c2f9cc4

Browse files
committed
Auto merge of #44143 - alexcrichton:faster-bootstrap, r=Mark-Simulacrum
rustbuild: Avoid some extraneous rustc compiles on cross builds This tweaks a few locations here and there to avoid compiling rustc too many times on our cross-builders on CI. Closes #44132
2 parents 09ea6b7 + 1d70b66 commit c2f9cc4

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

src/bootstrap/doc.rs

-5
Original file line numberDiff line numberDiff line change
@@ -669,11 +669,6 @@ impl Step for ErrorIndex {
669669
let build = builder.build;
670670
let target = self.target;
671671

672-
builder.ensure(compile::Rustc {
673-
compiler: builder.compiler(0, build.build),
674-
target,
675-
});
676-
677672
println!("Documenting error index ({})", target);
678673
let out = build.doc_out(target);
679674
t!(fs::create_dir_all(&out));

src/bootstrap/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -717,7 +717,7 @@ impl Build {
717717
fn force_use_stage1(&self, compiler: Compiler, target: Interned<String>) -> bool {
718718
!self.config.full_bootstrap &&
719719
compiler.stage >= 2 &&
720-
self.hosts.iter().any(|h| *h == target)
720+
(self.hosts.iter().any(|h| *h == target) || target == self.build)
721721
}
722722

723723
/// Returns the directory that OpenSSL artifacts are compiled into if

0 commit comments

Comments
 (0)