This repository was archived by the owner on May 28, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +2
-7
lines changed
src/bootstrap/src/core/config Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -1451,11 +1451,6 @@ impl Config {
14511451 config. out = crate :: utils:: helpers:: absolute ( & config. out ) ;
14521452 }
14531453
1454- // Hacky way to determine the executable suffix for the build target. We cannot use
1455- // std::env::consts::EXE_SUFFIX as the build target might not be the target bootstrap was
1456- // compiled with.
1457- let initial_exe_suffix = if config. build . triple . contains ( "windows" ) { ".exe" } else { "" } ;
1458-
14591454 config. initial_rustc = if let Some ( rustc) = rustc {
14601455 if !flags. skip_stage0_validation {
14611456 config. check_stage0_version ( & rustc, "rustc" ) ;
@@ -1468,7 +1463,7 @@ impl Config {
14681463 . join ( config. build . triple )
14691464 . join ( "stage0" )
14701465 . join ( "bin" )
1471- . join ( format ! ( "rustc{initial_exe_suffix}" ) )
1466+ . join ( exe ( "rustc" , config . build ) )
14721467 } ;
14731468
14741469 config. initial_cargo = if let Some ( cargo) = cargo {
@@ -1483,7 +1478,7 @@ impl Config {
14831478 . join ( config. build . triple )
14841479 . join ( "stage0" )
14851480 . join ( "bin" )
1486- . join ( format ! ( "cargo{initial_exe_suffix}" ) )
1481+ . join ( exe ( "cargo" , config . build ) )
14871482 } ;
14881483
14891484 // NOTE: it's important this comes *after* we set `initial_rustc` just above.
You can’t perform that action at this time.
0 commit comments