Skip to content

Commit 9e4b3d6

Browse files
committed
handle forced compiler in get_tool_rustc_compiler
Signed-off-by: onur-ozkan <[email protected]>
1 parent b885407 commit 9e4b3d6

File tree

1 file changed

+2
-0
lines changed
  • src/bootstrap/src/core/build_steps

1 file changed

+2
-0
lines changed

Diff for: src/bootstrap/src/core/build_steps/tool.rs

+2
Original file line numberDiff line numberDiff line change
@@ -299,6 +299,8 @@ pub(crate) fn get_tool_rustc_compiler(
299299
if builder.download_rustc() && target_compiler.stage == 1 {
300300
// We already have the stage 1 compiler, we don't need to cut the stage.
301301
builder.compiler(target_compiler.stage, builder.config.build)
302+
} else if target_compiler.is_forced_compiler() {
303+
target_compiler
302304
} else {
303305
// Similar to `compile::Assemble`, build with the previous stage's compiler. Otherwise
304306
// we'd have stageN/bin/rustc and stageN/bin/$rustc_tool be effectively different stage

0 commit comments

Comments
 (0)