@@ -5,7 +5,7 @@ use crate::core::build_steps::compile::{
5
5
} ;
6
6
use crate :: core:: build_steps:: tool:: { COMPILETEST_ALLOW_FEATURES , SourceType , prepare_tool_cargo} ;
7
7
use crate :: core:: builder:: {
8
- self , Alias , Builder , Kind , RunConfig , ShouldRun , Step , crate_description,
8
+ self , Alias , Builder , Kind , RunConfig , ShouldRun , Step , StepMetadata , crate_description,
9
9
} ;
10
10
use crate :: core:: config:: TargetSelection ;
11
11
use crate :: utils:: build_stamp:: { self , BuildStamp } ;
@@ -167,6 +167,10 @@ impl Step for Std {
167
167
let _guard = builder. msg_check ( "library test/bench/example targets" , target, Some ( stage) ) ;
168
168
run_cargo ( builder, cargo, builder. config . free_args . clone ( ) , & stamp, vec ! [ ] , true , false ) ;
169
169
}
170
+
171
+ fn metadata ( & self ) -> Option < StepMetadata > {
172
+ Some ( StepMetadata :: check ( "std" , self . target ) )
173
+ }
170
174
}
171
175
172
176
#[ derive( Debug , Clone , PartialEq , Eq , Hash ) ]
@@ -258,6 +262,10 @@ impl Step for Rustc {
258
262
let hostdir = builder. sysroot_target_libdir ( compiler, compiler. host ) ;
259
263
add_to_sysroot ( builder, & libdir, & hostdir, & stamp) ;
260
264
}
265
+
266
+ fn metadata ( & self ) -> Option < StepMetadata > {
267
+ Some ( StepMetadata :: check ( "rustc" , self . target ) )
268
+ }
261
269
}
262
270
263
271
#[ derive( Debug , Clone , PartialEq , Eq , Hash ) ]
@@ -315,6 +323,10 @@ impl Step for CodegenBackend {
315
323
316
324
run_cargo ( builder, cargo, builder. config . free_args . clone ( ) , & stamp, vec ! [ ] , true , false ) ;
317
325
}
326
+
327
+ fn metadata ( & self ) -> Option < StepMetadata > {
328
+ Some ( StepMetadata :: check ( self . backend , self . target ) )
329
+ }
318
330
}
319
331
320
332
#[ derive( Debug , Clone , PartialEq , Eq , Hash ) ]
@@ -373,6 +385,10 @@ impl Step for RustAnalyzer {
373
385
let _guard = builder. msg_check ( "rust-analyzer artifacts" , target, None ) ;
374
386
run_cargo ( builder, cargo, builder. config . free_args . clone ( ) , & stamp, vec ! [ ] , true , false ) ;
375
387
}
388
+
389
+ fn metadata ( & self ) -> Option < StepMetadata > {
390
+ Some ( StepMetadata :: check ( "rust-analyzer" , self . target ) )
391
+ }
376
392
}
377
393
378
394
/// Compiletest is implicitly "checked" when it gets built in order to run tests,
@@ -432,6 +448,10 @@ impl Step for Compiletest {
432
448
let _guard = builder. msg_check ( "compiletest artifacts" , self . target , None ) ;
433
449
run_cargo ( builder, cargo, builder. config . free_args . clone ( ) , & stamp, vec ! [ ] , true , false ) ;
434
450
}
451
+
452
+ fn metadata ( & self ) -> Option < StepMetadata > {
453
+ Some ( StepMetadata :: check ( "compiletest" , self . target ) )
454
+ }
435
455
}
436
456
437
457
macro_rules! tool_check_step {
@@ -467,6 +487,10 @@ macro_rules! tool_check_step {
467
487
let Self { target } = self ;
468
488
run_tool_check_step( builder, target, stringify!( $name) , $path) ;
469
489
}
490
+
491
+ fn metadata( & self ) -> Option <StepMetadata > {
492
+ Some ( StepMetadata :: check( stringify!( $name) , self . target) )
493
+ }
470
494
}
471
495
}
472
496
}
0 commit comments