mirror of
https://git.proxmox.com/git/rustc
synced 2025-08-26 02:32:12 +00:00
17 lines
723 B
Diff
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"),
|