Skip to content

Commit 9719031

Browse files
committed
bootstrap: ensure host std when cross-compiling tools, fixes #85320
1 parent 75da570 commit 9719031

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/bootstrap/tool.rs

+4-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,10 @@ impl Step for ToolBuild {
5252
let is_optional_tool = self.is_optional_tool;
5353

5454
match self.mode {
55-
Mode::ToolRustc => builder.ensure(compile::Rustc { compiler, target }),
55+
Mode::ToolRustc => {
56+
builder.ensure(compile::Std { compiler, target: compiler.host });
57+
builder.ensure(compile::Rustc { compiler, target });
58+
}
5659
Mode::ToolStd => builder.ensure(compile::Std { compiler, target }),
5760
Mode::ToolBootstrap => {} // uses downloaded stage0 compiler libs
5861
_ => panic!("unexpected Mode for tool build"),

0 commit comments

Comments
 (0)