Skip to content

Commit e8af236

Browse files
committed
Cleanup the last few dist steps
1 parent 699e5fe commit e8af236

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
@@ -2653,12 +2653,12 @@ impl Step for Bootstrap {
26532653
/// Should not be considered stable by end users.
26542654
#[derive(Clone, Debug, Eq, Hash, PartialEq)]
26552655
pub struct BuildManifest {
2656-
pub target: TargetSelection,
2656+
target: TargetSelection,
26572657
}
26582658

26592659
impl Step for BuildManifest {
26602660
type Output = GeneratedTarball;
2661-
const DEFAULT: bool = false;
2661+
26622662
const IS_HOST: bool = true;
26632663

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

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

26912695
impl Step for ReproducibleArtifacts {
@@ -2718,14 +2722,18 @@ impl Step for ReproducibleArtifacts {
27182722
}
27192723
if added_anything { Some(tarball.generate()) } else { None }
27202724
}
2725+
2726+
fn metadata(&self) -> Option<StepMetadata> {
2727+
Some(StepMetadata::dist("reproducible-artifacts", self.target))
2728+
}
27212729
}
27222730

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

27312739
impl Step for Gcc {
@@ -2745,4 +2753,8 @@ impl Step for Gcc {
27452753
tarball.add_file(&output.libgccjit, "lib", FileType::NativeLibrary);
27462754
tarball.generate()
27472755
}
2756+
2757+
fn metadata(&self) -> Option<StepMetadata> {
2758+
Some(StepMetadata::dist("gcc", self.target))
2759+
}
27482760
}

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

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1136,6 +1136,7 @@ mod snapshot {
11361136
[dist] rustc 1 <host> -> std 1 <host>
11371137
[dist] rustc 1 <host> -> rustc-dev 2 <host>
11381138
[dist] src <>
1139+
[dist] reproducible-artifacts <host>
11391140
"
11401141
);
11411142
}
@@ -1214,6 +1215,7 @@ mod snapshot {
12141215
[build] rustc 1 <host> -> cargo-miri 2 <host>
12151216
[dist] rustc 1 <host> -> miri 2 <host>
12161217
[dist] rustc 1 <host> -> extended 2 <host>
1218+
[dist] reproducible-artifacts <host>
12171219
");
12181220
}
12191221

@@ -1287,6 +1289,7 @@ mod snapshot {
12871289
[dist] rustc 2 <host> -> std 2 <target1>
12881290
[dist] rustc 1 <host> -> rustc-dev 2 <host>
12891291
[dist] src <>
1292+
[dist] reproducible-artifacts <host>
12901293
"
12911294
);
12921295
}
@@ -1347,6 +1350,8 @@ mod snapshot {
13471350
[dist] rustc 1 <host> -> rustc-dev 2 <host>
13481351
[dist] rustc 1 <host> -> rustc-dev 2 <target1>
13491352
[dist] src <>
1353+
[dist] reproducible-artifacts <host>
1354+
[dist] reproducible-artifacts <target1>
13501355
"
13511356
);
13521357
}
@@ -1428,6 +1433,8 @@ mod snapshot {
14281433
[dist] rustc 1 <host> -> rustc-dev 2 <host>
14291434
[dist] rustc 1 <host> -> rustc-dev 2 <target1>
14301435
[dist] src <>
1436+
[dist] reproducible-artifacts <host>
1437+
[dist] reproducible-artifacts <target1>
14311438
"
14321439
);
14331440
}
@@ -1551,6 +1558,7 @@ mod snapshot {
15511558
[build] rustc 1 <host> -> LlvmBitcodeLinker 2 <target1>
15521559
[doc] rustc 2 <target1> -> std 2 <target1> crates=[]
15531560
[dist] rustc 1 <host> -> extended 2 <target1>
1561+
[dist] reproducible-artifacts <target1>
15541562
");
15551563
}
15561564

@@ -1605,6 +1613,7 @@ mod snapshot {
16051613
[dist] rustc 1 <host> -> std 1 <host>
16061614
[dist] rustc 1 <host> -> rustc-dev 2 <host>
16071615
[dist] src <>
1616+
[dist] reproducible-artifacts <host>
16081617
");
16091618
}
16101619

0 commit comments

Comments
 (0)