@@ -246,12 +246,17 @@ pub enum Mode {
246246 /// Build a codegen backend for rustc, placing the output in the "stageN-codegen" directory.
247247 Codegen ,
248248
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.
253252 ///
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.
255260 ToolBootstrap ,
256261
257262 /// Build a tool which uses the locally built std, placing output in the
@@ -804,7 +809,9 @@ impl Build {
804809 Mode :: Std => "-std" ,
805810 Mode :: Rustc => "-rustc" ,
806811 Mode :: Codegen => "-codegen" ,
807- Mode :: ToolBootstrap => "-bootstrap-tools" ,
812+ Mode :: ToolBootstrap => {
813+ return self . out . join ( compiler. host ) . join ( "bootstrap-tools" ) ;
814+ }
808815 Mode :: ToolStd | Mode :: ToolRustc => "-tools" ,
809816 } ;
810817 self . out . join ( compiler. host ) . join ( format ! ( "stage{}{}" , compiler. stage, suffix) )
0 commit comments