File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
src/bootstrap/src/core/build_steps Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -196,6 +196,7 @@ impl Step for ToolBuild {
196
196
Kind :: Build ,
197
197
self . mode ,
198
198
self . tool ,
199
+ // A stage N tool is built with the stage N-1 compiler.
199
200
self . build_compiler . stage + 1 ,
200
201
& self . build_compiler . host ,
201
202
& self . target ,
@@ -366,7 +367,7 @@ pub(crate) fn get_tool_rustc_compiler(
366
367
}
367
368
368
369
/// Determines how to build a `ToolTarget`, i.e. which compiler should be used to compile it.
369
- /// The compiler stage is automatically auto- bumped if we need to cross-compile a stage 1 tool.
370
+ /// The compiler stage is automatically bumped if we need to cross-compile a stage 1 tool.
370
371
pub enum ToolTargetBuildMode {
371
372
/// Build the tool using rustc that corresponds to the selected CLI stage.
372
373
Build ( TargetSelection ) ,
@@ -399,7 +400,7 @@ pub(crate) fn get_tool_target_compiler(
399
400
builder. compiler ( build_compiler_stage, builder. host_target )
400
401
} else {
401
402
// If we are cross-compiling a stage 1 tool, we cannot do that with a stage 0 compiler,
402
- // so we auto-bump the tool's stage to 2.
403
+ // so we auto-bump the tool's stage to 2, which means we need a stage 1 compiler .
403
404
builder. compiler ( build_compiler_stage. max ( 1 ) , builder. host_target )
404
405
} ;
405
406
builder. std ( compiler, target) ;
You can’t perform that action at this time.
0 commit comments