X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=src%2Fbootstrap%2Fdist.rs;h=1a59b3958f1060844999fa0dac6ab6e7f30c3807;hb=5d55009b797e7dc1e6231e522bd849279cb1d31a;hp=c01afa1fd3b75c3fbc07f38f4fcac5c158846e35;hpb=3de558dd2dab1726cd008baee350bec6bca83b4b;p=rust.git diff --git a/src/bootstrap/dist.rs b/src/bootstrap/dist.rs index c01afa1fd3b..1a59b3958f1 100644 --- a/src/bootstrap/dist.rs +++ b/src/bootstrap/dist.rs @@ -423,8 +423,11 @@ fn prepare_image(builder: &Builder<'_>, compiler: Compiler, image: &Path) { let gcc_lld_src_dir = src_dir.join("gcc-ld"); let gcc_lld_dst_dir = dst_dir.join("gcc-ld"); t!(fs::create_dir(&gcc_lld_dst_dir)); - let exe_name = exe("ld", compiler.host); - builder.copy(&gcc_lld_src_dir.join(&exe_name), &gcc_lld_dst_dir.join(&exe_name)); + for name in crate::LLD_FILE_NAMES { + let exe_name = exe(name, compiler.host); + builder + .copy(&gcc_lld_src_dir.join(&exe_name), &gcc_lld_dst_dir.join(&exe_name)); + } } // Man pages