@@ -246,12 +246,17 @@ pub enum Mode {
246
246
/// Build a codegen backend for rustc, placing the output in the "stageN-codegen" directory.
247
247
Codegen ,
248
248
249
- /// Build a tool, placing output in the "stage0-bootstrap-tools"
250
- /// directory. This is for miscellaneous sets of tools that are built
251
- /// using the bootstrap stage0 compiler in its entirety (target libraries
252
- /// and all). Typically these tools compile with stable Rust.
249
+ /// Build a tool, placing output in the "bootstrap-tools"
250
+ /// directory. This is for miscellaneous sets of tools that extend
251
+ /// bootstrap.
253
252
///
254
- /// Only works for stage 0.
253
+ /// These tools are intended to be only executed on the host system that
254
+ /// invokes bootstrap, and they thus cannot be cross-compiled.
255
+ ///
256
+ /// They are always built using the stage0 compiler, and typically they
257
+ /// can be compiled with stable Rust.
258
+ ///
259
+ /// These tools also essentially do not participate in staging.
255
260
ToolBootstrap ,
256
261
257
262
/// Build a tool which uses the locally built std, placing output in the
@@ -804,7 +809,9 @@ impl Build {
804
809
Mode :: Std => "-std" ,
805
810
Mode :: Rustc => "-rustc" ,
806
811
Mode :: Codegen => "-codegen" ,
807
- Mode :: ToolBootstrap => "-bootstrap-tools" ,
812
+ Mode :: ToolBootstrap => {
813
+ return self . out . join ( compiler. host ) . join ( "bootstrap-tools" ) ;
814
+ }
808
815
Mode :: ToolStd | Mode :: ToolRustc => "-tools" ,
809
816
} ;
810
817
self . out . join ( compiler. host ) . join ( format ! ( "stage{}{}" , compiler. stage, suffix) )
0 commit comments