Skip to content

Commit f3c32ea

Browse files
committed
Rename the gcc component to ci-gcc
To free up the `gcc` name for the actual libgccjit component that we will ship to rustup, and also make it more explicit that this component is internal and for bootstrap usages only.
1 parent 15f7c55 commit f3c32ea

File tree

4 files changed

+12
-10
lines changed

4 files changed

+12
-10
lines changed

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

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2871,31 +2871,33 @@ impl Step for ReproducibleArtifacts {
28712871
/// Tarball containing a prebuilt version of the libgccjit library,
28722872
/// needed as a dependency for the GCC codegen backend (similarly to the LLVM
28732873
/// backend needing a prebuilt libLLVM).
2874+
///
2875+
/// This component is used for `download-ci-gcc`.
28742876
#[derive(Clone, Debug, Eq, Hash, PartialEq)]
2875-
pub struct Gcc {
2877+
pub struct CiGcc {
28762878
target: TargetSelection,
28772879
}
28782880

2879-
impl Step for Gcc {
2881+
impl Step for CiGcc {
28802882
type Output = GeneratedTarball;
28812883

28822884
fn should_run(run: ShouldRun<'_>) -> ShouldRun<'_> {
2883-
run.alias("gcc")
2885+
run.alias("ci-gcc")
28842886
}
28852887

28862888
fn make_run(run: RunConfig<'_>) {
2887-
run.builder.ensure(Gcc { target: run.target });
2889+
run.builder.ensure(CiGcc { target: run.target });
28882890
}
28892891

28902892
fn run(self, builder: &Builder<'_>) -> Self::Output {
2891-
let tarball = Tarball::new(builder, "gcc", &self.target.triple);
2893+
let tarball = Tarball::new(builder, "ci-gcc", &self.target.triple);
28922894
let output = builder
28932895
.ensure(super::gcc::Gcc { target_pair: GccTargetPair::for_native_build(self.target) });
28942896
tarball.add_file(output.libgccjit(), "lib", FileType::NativeLibrary);
28952897
tarball.generate()
28962898
}
28972899

28982900
fn metadata(&self) -> Option<StepMetadata> {
2899-
Some(StepMetadata::dist("gcc", self.target))
2901+
Some(StepMetadata::dist("ci-gcc", self.target))
29002902
}
29012903
}

src/bootstrap/src/core/builder/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -989,7 +989,7 @@ impl<'a> Builder<'a> {
989989
dist::PlainSourceTarballGpl,
990990
dist::BuildManifest,
991991
dist::ReproducibleArtifacts,
992-
dist::Gcc
992+
dist::CiGcc
993993
),
994994
Kind::Install => describe!(
995995
install::Docs,

src/bootstrap/src/core/download.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -381,7 +381,7 @@ impl Config {
381381
}
382382
let base = &self.stage0_metadata.config.artifacts_server;
383383
let version = self.artifact_version_part(gcc_sha);
384-
let filename = format!("gcc-{version}-{}.tar.xz", self.host_target.triple);
384+
let filename = format!("ci-gcc-{version}-{}.tar.xz", self.host_target.triple);
385385
let tarball = gcc_cache.join(&filename);
386386
if !tarball.exists() {
387387
let help_on_error = "ERROR: failed to download gcc from ci

src/ci/docker/host-x86_64/dist-x86_64-linux/dist.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ python3 ../x.py build --set rust.debug=true opt-dist
99
--include-default-paths \
1010
build-manifest bootstrap
1111

12-
# Use GCC for building GCC, as it seems to behave badly when built with Clang
12+
# Use GCC for building GCC components, as it seems to behave badly when built with Clang
1313
# Only build GCC on full builds, not try builds
1414
if [ "${DIST_TRY_BUILD:-0}" == "0" ]; then
15-
CC=/rustroot/bin/cc CXX=/rustroot/bin/c++ python3 ../x.py dist gcc
15+
CC=/rustroot/bin/cc CXX=/rustroot/bin/c++ python3 ../x.py dist ci-gcc
1616
fi

0 commit comments

Comments
 (0)