Skip to content

Commit

Permalink
in the second copy lld is already named rust-lld
Browse files Browse the repository at this point in the history
  • Loading branch information
japaric committed Jul 5, 2018
1 parent 807cd36 commit 31ed5c7
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/bootstrap/dist.rs
Expand Up @@ -491,18 +491,17 @@ impl Step for Rustc {

// Copy over lld if it's there
if builder.config.lld_enabled {
let src_exe = exe("lld", &compiler.host);
let dst_exe = exe("rust-lld", &compiler.host);
let exe = exe("rust-lld", &compiler.host);
let src = builder.sysroot_libdir(compiler, host)
.parent()
.unwrap()
.join("bin")
.join(&src_exe);
.join(&exe);
// for the rationale about this rename check `compile::copy_lld_to_sysroot`
let dst = image.join("lib/rustlib")
.join(&*host)
.join("bin")
.join(&dst_exe);
.join(&exe);
t!(fs::create_dir_all(&dst.parent().unwrap()));
builder.copy(&src, &dst);
}
Expand Down

0 comments on commit 31ed5c7

Please sign in to comment.