@@ -23,7 +23,7 @@ use crate::core::build_steps::doc::DocumentationFormat;
23
23
use crate :: core:: build_steps:: tool:: { self , Tool } ;
24
24
use crate :: core:: build_steps:: vendor:: { VENDOR_DIR , Vendor } ;
25
25
use crate :: core:: build_steps:: { compile, llvm} ;
26
- use crate :: core:: builder:: { Builder , Kind , RunConfig , ShouldRun , Step } ;
26
+ use crate :: core:: builder:: { Builder , Kind , RunConfig , ShouldRun , Step , StepMetadata } ;
27
27
use crate :: core:: config:: TargetSelection ;
28
28
use crate :: utils:: build_stamp:: { self , BuildStamp } ;
29
29
use crate :: utils:: channel:: { self , Info } ;
@@ -84,6 +84,10 @@ impl Step for Docs {
84
84
tarball. add_file ( builder. src . join ( "src/doc/robots.txt" ) , dest, FileType :: Regular ) ;
85
85
Some ( tarball. generate ( ) )
86
86
}
87
+
88
+ fn metadata ( & self ) -> Option < StepMetadata > {
89
+ Some ( StepMetadata :: dist ( "docs" , self . host ) )
90
+ }
87
91
}
88
92
89
93
#[ derive( Debug , PartialOrd , Ord , Clone , Hash , PartialEq , Eq ) ]
@@ -354,6 +358,10 @@ impl Step for Mingw {
354
358
355
359
Some ( tarball. generate ( ) )
356
360
}
361
+
362
+ fn metadata ( & self ) -> Option < StepMetadata > {
363
+ Some ( StepMetadata :: dist ( "mingw" , self . host ) )
364
+ }
357
365
}
358
366
359
367
#[ derive( Debug , PartialOrd , Ord , Clone , Hash , PartialEq , Eq ) ]
@@ -540,6 +548,10 @@ impl Step for Rustc {
540
548
}
541
549
}
542
550
}
551
+
552
+ fn metadata ( & self ) -> Option < StepMetadata > {
553
+ Some ( StepMetadata :: dist ( "rustc" , self . compiler . host ) )
554
+ }
543
555
}
544
556
545
557
#[ derive( Debug , Clone , Hash , PartialEq , Eq ) ]
@@ -723,6 +735,10 @@ impl Step for Std {
723
735
724
736
Some ( tarball. generate ( ) )
725
737
}
738
+
739
+ fn metadata ( & self ) -> Option < StepMetadata > {
740
+ Some ( StepMetadata :: dist ( "std" , self . target ) . built_by ( self . compiler ) )
741
+ }
726
742
}
727
743
728
744
/// Tarball containing the compiler that gets downloaded and used by
@@ -1002,6 +1018,10 @@ impl Step for Src {
1002
1018
1003
1019
tarball. generate ( )
1004
1020
}
1021
+
1022
+ fn metadata ( & self ) -> Option < StepMetadata > {
1023
+ Some ( StepMetadata :: dist ( "src" , TargetSelection :: default ( ) ) )
1024
+ }
1005
1025
}
1006
1026
1007
1027
#[ derive( Debug , PartialOrd , Ord , Clone , Hash , PartialEq , Eq ) ]
0 commit comments