Skip to content

Commit 1ddc43f

Browse files
committed
Fix ToolRustc build with download-rustc
1 parent 44bcde2 commit 1ddc43f

File tree

1 file changed

+7
-1
lines changed
  • src/bootstrap/src/core/build_steps

1 file changed

+7
-1
lines changed

src/bootstrap/src/core/build_steps/tool.rs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,13 @@ impl Step for ToolBuild {
111111
let path = self.path;
112112

113113
match self.mode {
114-
Mode::ToolRustc => {}
114+
Mode::ToolRustc => {
115+
// FIXME: remove this, it's only needed for download-rustc...
116+
if !self.build_compiler.is_forced_compiler() && builder.download_rustc() {
117+
builder.std(self.build_compiler, self.build_compiler.host);
118+
builder.ensure(compile::Rustc::new(self.build_compiler, target));
119+
}
120+
}
115121
Mode::ToolStd => {
116122
// If compiler was forced, its artifacts should have been prepared earlier.
117123
if !self.build_compiler.is_forced_compiler() {

0 commit comments

Comments
 (0)