@@ -229,7 +229,6 @@ pub struct Build {
229
229
230
230
initial_rustc : PathBuf ,
231
231
initial_cargo : PathBuf ,
232
- initial_lld : PathBuf ,
233
232
initial_libdir : PathBuf ,
234
233
initial_sysroot : PathBuf ,
235
234
@@ -392,7 +391,6 @@ impl Build {
392
391
)
393
392
} ;
394
393
let initial_target_dir = Path :: new ( & initial_target_libdir_str) . parent ( ) . unwrap ( ) ;
395
- let initial_lld = initial_target_dir. join ( "bin" ) . join ( "rust-lld" ) ;
396
394
397
395
let initial_sysroot = if config. dry_run ( ) {
398
396
"/dummy" . to_string ( )
@@ -435,7 +433,6 @@ impl Build {
435
433
let mut build = Build {
436
434
initial_rustc : config. initial_rustc . clone ( ) ,
437
435
initial_cargo : config. initial_cargo . clone ( ) ,
438
- initial_lld,
439
436
initial_libdir,
440
437
initial_sysroot : initial_sysroot. into ( ) ,
441
438
local_rebuild : config. local_rebuild ,
@@ -1254,34 +1251,11 @@ impl Build {
1254
1251
&& !target. contains ( "msvc" )
1255
1252
{
1256
1253
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 ( ) )
1259
1254
} else {
1260
1255
None
1261
1256
}
1262
1257
}
1263
1258
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
-
1285
1259
/// Returns if this target should statically link the C runtime, if specified
1286
1260
fn crt_static ( & self , target : TargetSelection ) -> Option < bool > {
1287
1261
if target. contains ( "pc-windows-msvc" ) {
0 commit comments