]> git.lizzy.rs Git - rust.git/commitdiff
in the second copy lld is already named rust-lld
authorJorge Aparicio <jorge@japaric.io>
Thu, 5 Jul 2018 04:10:10 +0000 (23:10 -0500)
committerJorge Aparicio <jorge@japaric.io>
Thu, 5 Jul 2018 04:10:10 +0000 (23:10 -0500)
src/bootstrap/dist.rs

index c61f360544ff88284882e326c772df79fab54c13..381e4beec4d1719078c1f2d5bcee7c1ee382227f 100644 (file)
@@ -491,18 +491,17 @@ fn prepare_image(builder: &Builder, compiler: Compiler, image: &Path) {
 
             // 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);
             }