File tree 1 file changed +1
-12
lines changed
src/bootstrap/src/core/build_steps
1 file changed +1
-12
lines changed Original file line number Diff line number Diff line change @@ -1830,24 +1830,13 @@ impl Step for Assemble {
1830
1830
} )
1831
1831
. collect :: < HashSet < _ > > ( ) ;
1832
1832
1833
- let link_std_into_rustc_driver = builder. link_std_into_rustc_driver ( target_compiler. host ) ;
1834
1833
let sysroot = builder. sysroot ( target_compiler) ;
1835
1834
let rustc_libdir = builder. rustc_libdir ( target_compiler) ;
1836
1835
t ! ( fs:: create_dir_all( & rustc_libdir) ) ;
1837
1836
let src_libdir = builder. sysroot_libdir ( build_compiler, host) ;
1838
1837
for f in builder. read_dir ( & src_libdir) {
1839
1838
let filename = f. file_name ( ) . into_string ( ) . unwrap ( ) ;
1840
-
1841
- // For the later stages which gets distributed avoid copying `std` if we're
1842
- // statically linking `std` into `rustc_driver`.
1843
- // We still need `std` for the initial stage as the bootstrap compiler may not
1844
- // have the new `rustc_private` linking behavior.
1845
- let is_std = filename. starts_with ( "std-" ) || filename. starts_with ( "libstd-" ) ;
1846
- let can_be_rustc_dep =
1847
- !is_std || !link_std_into_rustc_driver || build_compiler. stage == 0 ; // cfg(bootstrap)
1848
- if can_be_rustc_dep
1849
- && ( is_dylib ( & filename) || is_debug_info ( & filename) )
1850
- && !proc_macros. contains ( & filename)
1839
+ if ( is_dylib ( & filename) || is_debug_info ( & filename) ) && !proc_macros. contains ( & filename)
1851
1840
{
1852
1841
builder. copy_link ( & f. path ( ) , & rustc_libdir. join ( & filename) ) ;
1853
1842
}
You can’t perform that action at this time.
0 commit comments