This repository was archived by the owner on May 28, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +9
-8
lines changed Expand file tree Collapse file tree 4 files changed +9
-8
lines changed Original file line number Diff line number Diff line change @@ -645,8 +645,8 @@ fn cp_rustc_component_to_ci_sysroot(
645645 contents : Vec < String > ,
646646) {
647647 let sysroot = builder. ensure ( Sysroot { compiler, force_recompile : false } ) ;
648+ let ci_rustc_dir = builder. config . ci_rustc_dir ( ) ;
648649
649- let ci_rustc_dir = builder. out . join ( & * builder. build . build . triple ) . join ( "ci-rustc" ) ;
650650 for file in contents {
651651 let src = ci_rustc_dir. join ( & file) ;
652652 let dst = sysroot. join ( file) ;
@@ -1381,7 +1381,7 @@ impl Step for Sysroot {
13811381 // FIXME: this is wrong when compiler.host != build, but we don't support that today
13821382 OsStr :: new ( std:: env:: consts:: DLL_EXTENSION ) ,
13831383 ] ;
1384- let ci_rustc_dir = builder. ci_rustc_dir ( builder . config . build ) ;
1384+ let ci_rustc_dir = builder. config . ci_rustc_dir ( ) ;
13851385 builder. cp_filtered ( & ci_rustc_dir, & sysroot, & |path| {
13861386 if path. extension ( ) . map_or ( true , |ext| !filtered_extensions. contains ( & ext) ) {
13871387 return true ;
Original file line number Diff line number Diff line change @@ -1800,6 +1800,12 @@ impl Config {
18001800 self . out . join ( & * self . build . triple ) . join ( "ci-llvm" )
18011801 }
18021802
1803+ /// Directory where the extracted `rustc-dev` component is stored.
1804+ pub ( crate ) fn ci_rustc_dir ( & self ) -> PathBuf {
1805+ assert ! ( self . download_rustc( ) ) ;
1806+ self . out . join ( self . build . triple ) . join ( "ci-rustc" )
1807+ }
1808+
18031809 /// Determine whether llvm should be linked dynamically.
18041810 ///
18051811 /// If `false`, llvm should be linked statically.
Original file line number Diff line number Diff line change @@ -406,7 +406,7 @@ impl Config {
406406 return vec ! [ ] ;
407407 }
408408
409- let ci_rustc_dir = self . out . join ( & * self . build . triple ) . join ( "ci-rustc" ) ;
409+ let ci_rustc_dir = self . ci_rustc_dir ( ) ;
410410 let stamp_file = ci_rustc_dir. join ( stamp_file) ;
411411 let contents_file = t ! ( File :: open( & stamp_file) , stamp_file. display( ) . to_string( ) ) ;
412412 t ! ( BufReader :: new( contents_file) . lines( ) . collect( ) )
Original file line number Diff line number Diff line change @@ -819,11 +819,6 @@ impl Build {
819819 self . stage_out ( compiler, mode) . join ( & * target. triple ) . join ( self . cargo_dir ( ) )
820820 }
821821
822- /// Directory where the extracted `rustc-dev` component is stored.
823- fn ci_rustc_dir ( & self , target : TargetSelection ) -> PathBuf {
824- self . out . join ( & * target. triple ) . join ( "ci-rustc" )
825- }
826-
827822 /// Root output directory for LLVM compiled for `target`
828823 ///
829824 /// Note that if LLVM is configured externally then the directory returned
You can’t perform that action at this time.
0 commit comments