Fix download of GCC from CI on non-nightly channels

(cherry picked from commit 448b7afb32)
This commit is contained in:
Jakub Beránek 2025-05-10 21:39:08 +02:00 committed by Josh Stone
parent e6d3581214
commit e39669866a

View file

@ -852,7 +852,8 @@ download-rustc = false
t!(fs::create_dir_all(&gcc_cache));
}
let base = &self.stage0_metadata.config.artifacts_server;
let filename = format!("gcc-nightly-{}.tar.xz", self.build.triple);
let version = self.artifact_version_part(gcc_sha);
let filename = format!("gcc-{version}-{}.tar.xz", self.build.triple);
let tarball = gcc_cache.join(&filename);
if !tarball.exists() {
let help_on_error = "ERROR: failed to download gcc from ci