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
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.
You can’t perform that action at this time.
0 commit comments