rustc/debian/patches/u-fix-cross-compile-tools.patch
2021-05-15 15:19:08 +01:00

17 lines
723 B
Diff

Forwarded: https://github.com/rust-lang/rust/pull/85326
--- a/src/bootstrap/tool.rs
+++ b/src/bootstrap/tool.rs
@@ -52,7 +52,10 @@
let is_optional_tool = self.is_optional_tool;
match self.mode {
- Mode::ToolRustc => builder.ensure(compile::Rustc { compiler, target }),
+ Mode::ToolRustc => {
+ builder.ensure(compile::Std { compiler, target: compiler.host });
+ builder.ensure(compile::Rustc { compiler, target });
+ }
Mode::ToolStd => builder.ensure(compile::Std { compiler, target }),
Mode::ToolBootstrap => {} // uses downloaded stage0 compiler libs
_ => panic!("unexpected Mode for tool build"),