diff --git a/src/bootstrap/src/core/build_steps/dist.rs b/src/bootstrap/src/core/build_steps/dist.rs index 55df2ea076fc..7689a155bd1f 100644 --- a/src/bootstrap/src/core/build_steps/dist.rs +++ b/src/bootstrap/src/core/build_steps/dist.rs @@ -2653,12 +2653,12 @@ impl Step for Bootstrap { /// Should not be considered stable by end users. #[derive(Clone, Debug, Eq, Hash, PartialEq)] pub struct BuildManifest { - pub target: TargetSelection, + target: TargetSelection, } impl Step for BuildManifest { type Output = GeneratedTarball; - const DEFAULT: bool = false; + const IS_HOST: bool = true; fn should_run(run: ShouldRun<'_>) -> ShouldRun<'_> { @@ -2676,16 +2676,20 @@ impl Step for BuildManifest { tarball.add_file(&build_manifest, "bin", FileType::Executable); tarball.generate() } + + fn metadata(&self) -> Option { + Some(StepMetadata::dist("build-manifest", self.target)) + } } /// Tarball containing artifacts necessary to reproduce the build of rustc. /// -/// Currently this is the PGO profile data. +/// Currently this is the PGO (and possibly BOLT) profile data. /// /// Should not be considered stable by end users. #[derive(Clone, Debug, Eq, Hash, PartialEq)] pub struct ReproducibleArtifacts { - pub target: TargetSelection, + target: TargetSelection, } impl Step for ReproducibleArtifacts { @@ -2718,6 +2722,10 @@ impl Step for ReproducibleArtifacts { } if added_anything { Some(tarball.generate()) } else { None } } + + fn metadata(&self) -> Option { + Some(StepMetadata::dist("reproducible-artifacts", self.target)) + } } /// Tarball containing a prebuilt version of the libgccjit library, @@ -2725,7 +2733,7 @@ impl Step for ReproducibleArtifacts { /// backend needing a prebuilt libLLVM). #[derive(Clone, Debug, Eq, Hash, PartialEq)] pub struct Gcc { - pub target: TargetSelection, + target: TargetSelection, } impl Step for Gcc { @@ -2745,4 +2753,8 @@ impl Step for Gcc { tarball.add_file(&output.libgccjit, "lib", FileType::NativeLibrary); tarball.generate() } + + fn metadata(&self) -> Option { + Some(StepMetadata::dist("gcc", self.target)) + } } diff --git a/src/bootstrap/src/core/builder/tests.rs b/src/bootstrap/src/core/builder/tests.rs index e8ac73d57ff7..18c23c5f689c 100644 --- a/src/bootstrap/src/core/builder/tests.rs +++ b/src/bootstrap/src/core/builder/tests.rs @@ -1136,6 +1136,7 @@ mod snapshot { [dist] rustc 1 -> std 1 [dist] rustc 1 -> rustc-dev 2 [dist] src <> + [dist] reproducible-artifacts " ); } @@ -1214,6 +1215,7 @@ mod snapshot { [build] rustc 1 -> cargo-miri 2 [dist] rustc 1 -> miri 2 [dist] rustc 1 -> extended 2 + [dist] reproducible-artifacts "); } @@ -1287,6 +1289,7 @@ mod snapshot { [dist] rustc 2 -> std 2 [dist] rustc 1 -> rustc-dev 2 [dist] src <> + [dist] reproducible-artifacts " ); } @@ -1347,6 +1350,8 @@ mod snapshot { [dist] rustc 1 -> rustc-dev 2 [dist] rustc 1 -> rustc-dev 2 [dist] src <> + [dist] reproducible-artifacts + [dist] reproducible-artifacts " ); } @@ -1428,6 +1433,8 @@ mod snapshot { [dist] rustc 1 -> rustc-dev 2 [dist] rustc 1 -> rustc-dev 2 [dist] src <> + [dist] reproducible-artifacts + [dist] reproducible-artifacts " ); } @@ -1551,6 +1558,7 @@ mod snapshot { [build] rustc 1 -> LlvmBitcodeLinker 2 [doc] rustc 2 -> std 2 crates=[] [dist] rustc 1 -> extended 2 + [dist] reproducible-artifacts "); } @@ -1605,6 +1613,7 @@ mod snapshot { [dist] rustc 1 -> std 1 [dist] rustc 1 -> rustc-dev 2 [dist] src <> + [dist] reproducible-artifacts "); }