@@ -23,7 +23,7 @@ use crate::core::build_steps::doc::DocumentationFormat;
2323use crate :: core:: build_steps:: tool:: { self , Tool } ;
2424use crate :: core:: build_steps:: vendor:: { VENDOR_DIR , Vendor } ;
2525use 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 } ;
2727use crate :: core:: config:: TargetSelection ;
2828use crate :: utils:: build_stamp:: { self , BuildStamp } ;
2929use crate :: utils:: channel:: { self , Info } ;
@@ -84,6 +84,10 @@ impl Step for Docs {
8484 tarball. add_file ( builder. src . join ( "src/doc/robots.txt" ) , dest, FileType :: Regular ) ;
8585 Some ( tarball. generate ( ) )
8686 }
87+
88+ fn metadata ( & self ) -> Option < StepMetadata > {
89+ Some ( StepMetadata :: dist ( "docs" , self . host ) )
90+ }
8791}
8892
8993#[ derive( Debug , PartialOrd , Ord , Clone , Hash , PartialEq , Eq ) ]
@@ -354,6 +358,10 @@ impl Step for Mingw {
354358
355359 Some ( tarball. generate ( ) )
356360 }
361+
362+ fn metadata ( & self ) -> Option < StepMetadata > {
363+ Some ( StepMetadata :: dist ( "mingw" , self . host ) )
364+ }
357365}
358366
359367#[ derive( Debug , PartialOrd , Ord , Clone , Hash , PartialEq , Eq ) ]
@@ -540,6 +548,10 @@ impl Step for Rustc {
540548 }
541549 }
542550 }
551+
552+ fn metadata ( & self ) -> Option < StepMetadata > {
553+ Some ( StepMetadata :: dist ( "rustc" , self . compiler . host ) )
554+ }
543555}
544556
545557#[ derive( Debug , Clone , Hash , PartialEq , Eq ) ]
@@ -723,6 +735,10 @@ impl Step for Std {
723735
724736 Some ( tarball. generate ( ) )
725737 }
738+
739+ fn metadata ( & self ) -> Option < StepMetadata > {
740+ Some ( StepMetadata :: dist ( "std" , self . target ) . built_by ( self . compiler ) )
741+ }
726742}
727743
728744/// Tarball containing the compiler that gets downloaded and used by
@@ -1002,6 +1018,10 @@ impl Step for Src {
10021018
10031019 tarball. generate ( )
10041020 }
1021+
1022+ fn metadata ( & self ) -> Option < StepMetadata > {
1023+ Some ( StepMetadata :: dist ( "src" , TargetSelection :: default ( ) ) )
1024+ }
10051025}
10061026
10071027#[ derive( Debug , PartialOrd , Ord , Clone , Hash , PartialEq , Eq ) ]
0 commit comments