u-fix-cross-compile-install-again
authorDebian Rust Maintainers <pkg-rust-maintainers@alioth-lists.debian.net>
Sun, 5 Jan 2020 13:35:46 +0000 (13:35 +0000)
committerXimin Luo <infinity0@debian.org>
Sun, 5 Jan 2020 13:35:46 +0000 (13:35 +0000)
Gbp-Pq: Name u-fix-cross-compile-install-again.patch

src/bootstrap/install.rs

index 384219c38fd0483f821754a19dc9029a5434173b..f8734ebdf4254213b743dfa125fbc701250addba 100644 (file)
@@ -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);
     };