File tree 4 files changed +10
-8
lines changed
4 files changed +10
-8
lines changed Original file line number Diff line number Diff line change @@ -645,8 +645,8 @@ fn cp_rustc_component_to_ci_sysroot(
645
645
contents : Vec < String > ,
646
646
) {
647
647
let sysroot = builder. ensure ( Sysroot { compiler, force_recompile : false } ) ;
648
+ let ci_rustc_dir = builder. config . ci_rustc_dir ( ) ;
648
649
649
- let ci_rustc_dir = builder. out . join ( & * builder. build . build . triple ) . join ( "ci-rustc" ) ;
650
650
for file in contents {
651
651
let src = ci_rustc_dir. join ( & file) ;
652
652
let dst = sysroot. join ( file) ;
@@ -1381,7 +1381,7 @@ impl Step for Sysroot {
1381
1381
// FIXME: this is wrong when compiler.host != build, but we don't support that today
1382
1382
OsStr :: new ( std:: env:: consts:: DLL_EXTENSION ) ,
1383
1383
] ;
1384
- let ci_rustc_dir = builder. ci_rustc_dir ( builder . config . build ) ;
1384
+ let ci_rustc_dir = builder. config . ci_rustc_dir ( ) ;
1385
1385
builder. cp_filtered ( & ci_rustc_dir, & sysroot, & |path| {
1386
1386
if path. extension ( ) . map_or ( true , |ext| !filtered_extensions. contains ( & ext) ) {
1387
1387
return true ;
Original file line number Diff line number Diff line change @@ -1800,6 +1800,13 @@ impl Config {
1800
1800
self . out . join ( & * self . build . triple ) . join ( "ci-llvm" )
1801
1801
}
1802
1802
1803
+ /// Directory where the extracted `rustc-dev` component is stored.
1804
+ pub ( crate ) fn ci_rustc_dir ( & self ) -> PathBuf {
1805
+ // assert!(self.download_rustc_commit.is_some());
1806
+ assert ! ( self . download_rustc( ) ) ;
1807
+ self . out . join ( self . build . triple ) . join ( "ci-rustc" )
1808
+ }
1809
+
1803
1810
/// Determine whether llvm should be linked dynamically.
1804
1811
///
1805
1812
/// If `false`, llvm should be linked statically.
Original file line number Diff line number Diff line change @@ -406,7 +406,7 @@ impl Config {
406
406
return vec ! [ ] ;
407
407
}
408
408
409
- let ci_rustc_dir = self . out . join ( & * self . build . triple ) . join ( "ci-rustc" ) ;
409
+ let ci_rustc_dir = self . ci_rustc_dir ( ) ;
410
410
let stamp_file = ci_rustc_dir. join ( stamp_file) ;
411
411
let contents_file = t ! ( File :: open( & stamp_file) , stamp_file. display( ) . to_string( ) ) ;
412
412
t ! ( BufReader :: new( contents_file) . lines( ) . collect( ) )
Original file line number Diff line number Diff line change @@ -822,11 +822,6 @@ impl Build {
822
822
self . stage_out ( compiler, mode) . join ( & * target. triple ) . join ( self . cargo_dir ( ) )
823
823
}
824
824
825
- /// Directory where the extracted `rustc-dev` component is stored.
826
- fn ci_rustc_dir ( & self , target : TargetSelection ) -> PathBuf {
827
- self . out . join ( & * target. triple ) . join ( "ci-rustc" )
828
- }
829
-
830
825
/// Root output directory for LLVM compiled for `target`
831
826
///
832
827
/// Note that if LLVM is configured externally then the directory returned
You can’t perform that action at this time.
0 commit comments