handle forced compiler in get_tool_rustc_compiler
Signed-off-by: onur-ozkan <work@onurozkan.dev>
This commit is contained in:
parent
b885407c0c
commit
9e4b3d6bc4
1 changed files with 2 additions and 0 deletions
|
|
@ -299,6 +299,8 @@ pub(crate) fn get_tool_rustc_compiler(
|
|||
if builder.download_rustc() && target_compiler.stage == 1 {
|
||||
// We already have the stage 1 compiler, we don't need to cut the stage.
|
||||
builder.compiler(target_compiler.stage, builder.config.build)
|
||||
} else if target_compiler.is_forced_compiler() {
|
||||
target_compiler
|
||||
} else {
|
||||
// Similar to `compile::Assemble`, build with the previous stage's compiler. Otherwise
|
||||
// we'd have stageN/bin/rustc and stageN/bin/$rustc_tool be effectively different stage
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue