]> git.lizzy.rs Git - rust.git/blobdiff - src/bootstrap/lib.rs
rustbuild: Fix uplifting stage1 on cross builds
[rust.git] / src / bootstrap / lib.rs
index 55358f2ffcb7334deda2c7e4ecde1180cdd9c7d6..645037a921122cb95ea4d7470097b1f945f20e4c 100644 (file)
@@ -718,7 +718,7 @@ fn python(&self) -> &Path {
     fn force_use_stage1(&self, compiler: Compiler, target: Interned<String>) -> bool {
         !self.config.full_bootstrap &&
             compiler.stage >= 2 &&
-            self.hosts.iter().any(|h| *h == target)
+            (self.hosts.iter().any(|h| *h == target) || target == self.build)
     }
 
     /// Returns the directory that OpenSSL artifacts are compiled into if