@@ -229,7 +229,6 @@ pub struct Build {
229229
230230 initial_rustc : PathBuf ,
231231 initial_cargo : PathBuf ,
232- initial_lld : PathBuf ,
233232 initial_libdir : PathBuf ,
234233 initial_sysroot : PathBuf ,
235234
@@ -392,7 +391,6 @@ impl Build {
392391 )
393392 } ;
394393 let initial_target_dir = Path :: new ( & initial_target_libdir_str) . parent ( ) . unwrap ( ) ;
395- let initial_lld = initial_target_dir. join ( "bin" ) . join ( "rust-lld" ) ;
396394
397395 let initial_sysroot = if config. dry_run ( ) {
398396 "/dummy" . to_string ( )
@@ -435,7 +433,6 @@ impl Build {
435433 let mut build = Build {
436434 initial_rustc : config. initial_rustc . clone ( ) ,
437435 initial_cargo : config. initial_cargo . clone ( ) ,
438- initial_lld,
439436 initial_libdir,
440437 initial_sysroot : initial_sysroot. into ( ) ,
441438 local_rebuild : config. local_rebuild ,
@@ -1254,34 +1251,11 @@ impl Build {
12541251 && !target. contains ( "msvc" )
12551252 {
12561253 Some ( self . cc ( target) )
1257- } else if self . config . use_lld && !self . is_fuse_ld_lld ( target) && self . build == target {
1258- Some ( self . initial_lld . clone ( ) )
12591254 } else {
12601255 None
12611256 }
12621257 }
12631258
1264- // LLD is used through `-fuse-ld=lld` rather than directly.
1265- // Only MSVC targets use LLD directly at the moment.
1266- fn is_fuse_ld_lld ( & self , target : TargetSelection ) -> bool {
1267- self . config . use_lld && !target. contains ( "msvc" )
1268- }
1269-
1270- fn lld_flags ( & self , target : TargetSelection ) -> impl Iterator < Item = String > {
1271- let mut options = [ None , None ] ;
1272-
1273- if self . config . use_lld {
1274- if self . is_fuse_ld_lld ( target) {
1275- options[ 0 ] = Some ( "-Clink-arg=-fuse-ld=lld" . to_string ( ) ) ;
1276- }
1277-
1278- let no_threads = util:: lld_flag_no_threads ( target. contains ( "windows" ) ) ;
1279- options[ 1 ] = Some ( format ! ( "-Clink-arg=-Wl,{no_threads}" ) ) ;
1280- }
1281-
1282- IntoIterator :: into_iter ( options) . flatten ( )
1283- }
1284-
12851259 /// Returns if this target should statically link the C runtime, if specified
12861260 fn crt_static ( & self , target : TargetSelection ) -> Option < bool > {
12871261 if target. contains ( "pc-windows-msvc" ) {
0 commit comments