Skip to content

Commit 29f0d8b

Browse files
committed
Download CI GCC into the correct directory
1 parent f605b57 commit 29f0d8b

File tree

1 file changed

+3
-3
lines changed
  • src/bootstrap/src/core/build_steps

1 file changed

+3
-3
lines changed

src/bootstrap/src/core/build_steps/gcc.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ fn try_download_gcc(builder: &Builder<'_>, target: TargetSelection) -> Option<Pa
122122
match source {
123123
PathFreshness::LastModifiedUpstream { upstream } => {
124124
// Download from upstream CI
125-
let root = ci_gcc_root(&builder.config);
125+
let root = ci_gcc_root(&builder.config, target);
126126
let gcc_stamp = BuildStamp::new(&root).with_prefix("gcc").add_stamp(&upstream);
127127
if !gcc_stamp.is_up_to_date() && !builder.config.dry_run() {
128128
builder.config.download_ci_gcc(&upstream, &root);
@@ -286,8 +286,8 @@ pub fn add_cg_gcc_cargo_flags(cargo: &mut Cargo, gcc: &GccOutput) {
286286

287287
/// The absolute path to the downloaded GCC artifacts.
288288
#[cfg(not(test))]
289-
fn ci_gcc_root(config: &crate::Config) -> PathBuf {
290-
config.out.join(config.host_target).join("ci-gcc")
289+
fn ci_gcc_root(config: &crate::Config, target: TargetSelection) -> PathBuf {
290+
config.out.join(target).join("ci-gcc")
291291
}
292292

293293
/// Detect whether GCC sources have been modified locally or not.

0 commit comments

Comments
 (0)