about summary refs log tree commit diff
diff options
context:
space:
mode:
authorXimin Luo <infinity0@pwned.gg>2019-11-28 10:11:48 +0000
committerXimin Luo <infinity0@pwned.gg>2019-12-01 00:53:25 +0000
commita9dca3b243022a320b53543a975ff4774986ba5f (patch)
tree70e425d0ab4660ca4c9fe859627e8dfa29e74e11
parent96ad8e5fbcf00afc1ccde386b031919b4d01aa33 (diff)
downloadrust-a9dca3b243022a320b53543a975ff4774986ba5f.tar.gz
rust-a9dca3b243022a320b53543a975ff4774986ba5f.zip
rustbuild: fix cross-compile install
although, not sure why this works - it wasn't needed before
-rw-r--r--src/bootstrap/install.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bootstrap/install.rs b/src/bootstrap/install.rs
index 384219c38fd..f8734ebdf42 100644
--- a/src/bootstrap/install.rs
+++ b/src/bootstrap/install.rs
@@ -260,7 +260,7 @@ install!((self, builder, _config),
     };
     Rustc, "src/librustc", true, only_hosts: true, {
         builder.ensure(dist::Rustc {
-            compiler: self.compiler,
+            compiler: builder.compiler(builder.top_stage, self.target),
         });
         install_rustc(builder, self.compiler.stage, self.target);
     };