From 7826c57be6ce056ec12faff7f68c980a2d18ea48 Mon Sep 17 00:00:00 2001 From: Aaron Hill Date: Thu, 25 Nov 2021 11:45:58 -0600 Subject: [PATCH] Include `lld` in `rust-dev` package Fixes #88941 This will allow using `download-ci-llvm` while still having LLD available. --- src/bootstrap/dist.rs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/bootstrap/dist.rs b/src/bootstrap/dist.rs index 09ea84a083eb2..5f28ffeda8fee 100644 --- a/src/bootstrap/dist.rs +++ b/src/bootstrap/dist.rs @@ -2085,6 +2085,13 @@ impl Step for RustDev { ] { tarball.add_file(src_bindir.join(exe(bin, target)), "bin", 0o755); } + + // We don't build LLD on some platforms, so only add it if it exists + let lld_path = builder.lld_out(target).join("bin").join(exe("lld", target)); + if lld_path.exists() { + tarball.add_file(lld_path, "bin", 0o755); + } + tarball.add_file(&builder.llvm_filecheck(target), "bin", 0o755); // Copy the include directory as well; needed mostly to build