We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 807cd36 commit 31ed5c7Copy full SHA for 31ed5c7
src/bootstrap/dist.rs
@@ -491,18 +491,17 @@ impl Step for Rustc {
491
492
// Copy over lld if it's there
493
if builder.config.lld_enabled {
494
- let src_exe = exe("lld", &compiler.host);
495
- let dst_exe = exe("rust-lld", &compiler.host);
+ let exe = exe("rust-lld", &compiler.host);
496
let src = builder.sysroot_libdir(compiler, host)
497
.parent()
498
.unwrap()
499
.join("bin")
500
- .join(&src_exe);
+ .join(&exe);
501
// for the rationale about this rename check `compile::copy_lld_to_sysroot`
502
let dst = image.join("lib/rustlib")
503
.join(&*host)
504
505
- .join(&dst_exe);
506
t!(fs::create_dir_all(&dst.parent().unwrap()));
507
builder.copy(&src, &dst);
508
}
0 commit comments