Skip to content

Commit a810c3a

Browse files
Auto merge of #150535 - Kobzol:rename-ci-gcc, r=<try>
Rename the gcc component to gcc-dev try-job: dist-x86_64-linux
2 parents 1b43252 + 2a893bd commit a810c3a

File tree

6 files changed

+15
-13
lines changed

6 files changed

+15
-13
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 GccDev {
28762878
target: TargetSelection,
28772879
}
28782880

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

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

28862888
fn make_run(run: RunConfig<'_>) {
2887-
run.builder.ensure(Gcc { target: run.target });
2889+
run.builder.ensure(GccDev { 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, "gcc-dev", &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("gcc-dev", 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::GccDev
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!("gcc-dev-{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 gcc-dev
1616
fi

src/ci/run.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -187,8 +187,9 @@ else
187187
RUST_CONFIGURE_ARGS="$RUST_CONFIGURE_ARGS --set llvm.static-libstdcpp"
188188
fi
189189

190-
# Download GCC from CI on test builders
191-
RUST_CONFIGURE_ARGS="$RUST_CONFIGURE_ARGS --set gcc.download-ci-gcc=true"
190+
# Download GCC from CI on test builders (temporarily disabled because the CI gcc component
191+
# was renamed).
192+
RUST_CONFIGURE_ARGS="$RUST_CONFIGURE_ARGS --set gcc.download-ci-gcc=false"
192193

193194
# download-rustc seems to be broken on CI after the stage0 redesign
194195
# Disable it until these issues are debugged and resolved

src/tools/opt-dist/src/main.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -454,7 +454,6 @@ fn main() -> anyhow::Result<()> {
454454
"clippy",
455455
"miri",
456456
"rustfmt",
457-
"gcc",
458457
"generate-copyright",
459458
"bootstrap",
460459
] {

0 commit comments

Comments
 (0)