Skip to content

Commit 448b7af

Browse files
committed
Fix download of GCC from CI on non-nightly channels
1 parent b105556 commit 448b7af

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/bootstrap/src/core/download.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -852,7 +852,8 @@ download-rustc = false
852852
t!(fs::create_dir_all(&gcc_cache));
853853
}
854854
let base = &self.stage0_metadata.config.artifacts_server;
855-
let filename = format!("gcc-nightly-{}.tar.xz", self.build.triple);
855+
let version = self.artifact_version_part(gcc_sha);
856+
let filename = format!("gcc-{version}-{}.tar.xz", self.build.triple);
856857
let tarball = gcc_cache.join(&filename);
857858
if !tarball.exists() {
858859
let help_on_error = "ERROR: failed to download gcc from ci

0 commit comments

Comments
 (0)