Skip to content

Commit 7007a44

Browse files
committed
rustbuild: Fix uplifting stage1 on cross builds
When we pass `--host` the `self.hosts` array doesn't contain `self.build`, so check `self.build` to see if we can uplift.
1 parent 5caca6f commit 7007a44

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bootstrap/lib.rs

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

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

0 commit comments

Comments
 (0)