@@ -280,7 +280,7 @@ impl Step for CodegenBackend {
280
280
}
281
281
282
282
macro_rules! tool_check_step {
283
- ( $name: ident, $path: literal, $( $alias: literal, ) * $source_type: path) => {
283
+ ( $name: ident, $path: literal, $( $alias: literal, ) * $source_type: path $ ( , $default : literal ) ? ) => {
284
284
#[ derive( Debug , Copy , Clone , PartialEq , Eq , Hash ) ]
285
285
pub struct $name {
286
286
pub target: TargetSelection ,
@@ -289,7 +289,7 @@ macro_rules! tool_check_step {
289
289
impl Step for $name {
290
290
type Output = ( ) ;
291
291
const ONLY_HOSTS : bool = true ;
292
- const DEFAULT : bool = true ;
292
+ const DEFAULT : bool = true $ ( && $default ) ? ;
293
293
294
294
fn should_run( run: ShouldRun <' _>) -> ShouldRun <' _> {
295
295
run. paths( & [ $path, $( $alias) ,* ] )
@@ -368,7 +368,7 @@ tool_check_step!(Rustdoc, "src/tools/rustdoc", "src/librustdoc", SourceType::InT
368
368
// rejected.
369
369
tool_check_step ! ( Clippy , "src/tools/clippy" , SourceType :: InTree ) ;
370
370
371
- tool_check_step ! ( Bootstrap , "src/bootstrap" , SourceType :: InTree ) ;
371
+ tool_check_step ! ( Bootstrap , "src/bootstrap" , SourceType :: InTree , false ) ;
372
372
373
373
/// Cargo's output path for the standard library in a given stage, compiled
374
374
/// by a particular compiler for the specified target.
0 commit comments