about summary refs log tree commit diff
path: root/src/bootstrap
diff options
context:
space:
mode:
authorRémy Rakic <remy.rakic+github@gmail.com>2022-11-23 18:20:57 +0000
committerRémy Rakic <remy.rakic+github@gmail.com>2023-01-03 20:06:45 +0000
commit6eb205d591863f03e661f79ea3cb993f69eff844 (patch)
treea54ad30e139cb04de40a478bf378b3a73df649ab /src/bootstrap
parent312c9a37f26d1f0a98fc410109abb961e945b85e (diff)
downloadrust-6eb205d591863f03e661f79ea3cb993f69eff844.tar.gz
rust-6eb205d591863f03e661f79ea3cb993f69eff844.zip
bootstrap dist: ensure LLD's step
Diffstat (limited to 'src/bootstrap')
-rw-r--r--src/bootstrap/dist.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/bootstrap/dist.rs b/src/bootstrap/dist.rs
index 340aa78ebf9..479bfeb8e85 100644
--- a/src/bootstrap/dist.rs
+++ b/src/bootstrap/dist.rs
@@ -2067,6 +2067,12 @@ impl Step for RustDev {
 
         builder.ensure(crate::native::Llvm { target });
 
+        // If the config has LLD enabled, ensure its step. We'll we want to package it, and use it
+        // in download-ci-llvm.
+        if builder.config.lld_enabled {
+            builder.ensure(crate::native::Lld { target });
+        }
+
         let src_bindir = builder.llvm_out(target).join("bin");
         // If updating this list, you likely want to change
         // src/bootstrap/download-ci-llvm-stamp as well, otherwise local users