Skip to content

Commit 4831c74

Browse files
committed
Cleanup the last few dist steps
1 parent af237c2 commit 4831c74

File tree

2 files changed

+26
-5
lines changed

2 files changed

+26
-5
lines changed

src/bootstrap/src/core/build_steps/dist.rs

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2652,12 +2652,12 @@ impl Step for Bootstrap {
26522652
/// Should not be considered stable by end users.
26532653
#[derive(Clone, Debug, Eq, Hash, PartialEq)]
26542654
pub struct BuildManifest {
2655-
pub target: TargetSelection,
2655+
target: TargetSelection,
26562656
}
26572657

26582658
impl Step for BuildManifest {
26592659
type Output = GeneratedTarball;
2660-
const DEFAULT: bool = false;
2660+
26612661
const IS_HOST: bool = true;
26622662

26632663
fn should_run(run: ShouldRun<'_>) -> ShouldRun<'_> {
@@ -2675,16 +2675,20 @@ impl Step for BuildManifest {
26752675
tarball.add_file(&build_manifest, "bin", FileType::Executable);
26762676
tarball.generate()
26772677
}
2678+
2679+
fn metadata(&self) -> Option<StepMetadata> {
2680+
Some(StepMetadata::dist("build-manifest", self.target))
2681+
}
26782682
}
26792683

26802684
/// Tarball containing artifacts necessary to reproduce the build of rustc.
26812685
///
2682-
/// Currently this is the PGO profile data.
2686+
/// Currently this is the PGO (and possibly BOLT) profile data.
26832687
///
26842688
/// Should not be considered stable by end users.
26852689
#[derive(Clone, Debug, Eq, Hash, PartialEq)]
26862690
pub struct ReproducibleArtifacts {
2687-
pub target: TargetSelection,
2691+
target: TargetSelection,
26882692
}
26892693

26902694
impl Step for ReproducibleArtifacts {
@@ -2717,14 +2721,18 @@ impl Step for ReproducibleArtifacts {
27172721
}
27182722
if added_anything { Some(tarball.generate()) } else { None }
27192723
}
2724+
2725+
fn metadata(&self) -> Option<StepMetadata> {
2726+
Some(StepMetadata::dist("reproducible-artifacts", self.target))
2727+
}
27202728
}
27212729

27222730
/// Tarball containing a prebuilt version of the libgccjit library,
27232731
/// needed as a dependency for the GCC codegen backend (similarly to the LLVM
27242732
/// backend needing a prebuilt libLLVM).
27252733
#[derive(Clone, Debug, Eq, Hash, PartialEq)]
27262734
pub struct Gcc {
2727-
pub target: TargetSelection,
2735+
target: TargetSelection,
27282736
}
27292737

27302738
impl Step for Gcc {
@@ -2744,4 +2752,8 @@ impl Step for Gcc {
27442752
tarball.add_file(&output.libgccjit, "lib", FileType::NativeLibrary);
27452753
tarball.generate()
27462754
}
2755+
2756+
fn metadata(&self) -> Option<StepMetadata> {
2757+
Some(StepMetadata::dist("gcc", self.target))
2758+
}
27472759
}

src/bootstrap/src/core/builder/tests.rs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1059,6 +1059,7 @@ mod snapshot {
10591059
[dist] rustc 1 <host> -> std 1 <host>
10601060
[dist] rustc 1 <host> -> rustc-dev 2 <host>
10611061
[dist] src <>
1062+
[dist] reproducible-artifacts <host>
10621063
"
10631064
);
10641065
}
@@ -1137,6 +1138,7 @@ mod snapshot {
11371138
[build] rustc 1 <host> -> cargo-miri 2 <host>
11381139
[dist] rustc 1 <host> -> miri 2 <host>
11391140
[dist] rustc 1 <host> -> extended 2 <host>
1141+
[dist] reproducible-artifacts <host>
11401142
");
11411143
}
11421144

@@ -1210,6 +1212,7 @@ mod snapshot {
12101212
[dist] rustc 2 <host> -> std 2 <target1>
12111213
[dist] rustc 1 <host> -> rustc-dev 2 <host>
12121214
[dist] src <>
1215+
[dist] reproducible-artifacts <host>
12131216
"
12141217
);
12151218
}
@@ -1270,6 +1273,8 @@ mod snapshot {
12701273
[dist] rustc 1 <host> -> rustc-dev 2 <host>
12711274
[dist] rustc 1 <host> -> rustc-dev 2 <target1>
12721275
[dist] src <>
1276+
[dist] reproducible-artifacts <host>
1277+
[dist] reproducible-artifacts <target1>
12731278
"
12741279
);
12751280
}
@@ -1351,6 +1356,8 @@ mod snapshot {
13511356
[dist] rustc 1 <host> -> rustc-dev 2 <host>
13521357
[dist] rustc 1 <host> -> rustc-dev 2 <target1>
13531358
[dist] src <>
1359+
[dist] reproducible-artifacts <host>
1360+
[dist] reproducible-artifacts <target1>
13541361
"
13551362
);
13561363
}
@@ -1474,6 +1481,7 @@ mod snapshot {
14741481
[build] rustc 1 <host> -> LlvmBitcodeLinker 2 <target1>
14751482
[doc] rustc 2 <target1> -> std 2 <target1> crates=[]
14761483
[dist] rustc 1 <host> -> extended 2 <target1>
1484+
[dist] reproducible-artifacts <target1>
14771485
");
14781486
}
14791487

@@ -1528,6 +1536,7 @@ mod snapshot {
15281536
[dist] rustc 1 <host> -> std 1 <host>
15291537
[dist] rustc 1 <host> -> rustc-dev 2 <host>
15301538
[dist] src <>
1539+
[dist] reproducible-artifacts <host>
15311540
");
15321541
}
15331542

0 commit comments

Comments
 (0)