File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
src/bootstrap/src/core/build_steps Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -122,7 +122,7 @@ fn try_download_gcc(builder: &Builder<'_>, target: TargetSelection) -> Option<Pa
122
122
match source {
123
123
PathFreshness :: LastModifiedUpstream { upstream } => {
124
124
// Download from upstream CI
125
- let root = ci_gcc_root ( & builder. config ) ;
125
+ let root = ci_gcc_root ( & builder. config , target ) ;
126
126
let gcc_stamp = BuildStamp :: new ( & root) . with_prefix ( "gcc" ) . add_stamp ( & upstream) ;
127
127
if !gcc_stamp. is_up_to_date ( ) && !builder. config . dry_run ( ) {
128
128
builder. config . download_ci_gcc ( & upstream, & root) ;
@@ -286,8 +286,8 @@ pub fn add_cg_gcc_cargo_flags(cargo: &mut Cargo, gcc: &GccOutput) {
286
286
287
287
/// The absolute path to the downloaded GCC artifacts.
288
288
#[ 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" )
291
291
}
292
292
293
293
/// Detect whether GCC sources have been modified locally or not.
You can’t perform that action at this time.
0 commit comments