about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJosh Stone <jistone@redhat.com>2024-12-12 17:06:03 -0800
committerJosh Stone <jistone@redhat.com>2025-01-23 11:46:20 -0800
commit07c33e9b98186fcee55b45706a05dfcc639273ca (patch)
tree90dbda18d7221708c7276fbbe48aed4a843068c2
parentbc1efc5dc32d31f5fe8f48ecccc38f0ff08188d9 (diff)
downloadrust-07c33e9b98186fcee55b45706a05dfcc639273ca.tar.gz
rust-07c33e9b98186fcee55b45706a05dfcc639273ca.zip
Only dist `llvm-objcopy` if llvm tools are enabled
(cherry picked from commit 4c6d793c66993a0f5455f35e73a1549d232c3ae5)
-rw-r--r--src/bootstrap/src/core/build_steps/dist.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bootstrap/src/core/build_steps/dist.rs b/src/bootstrap/src/core/build_steps/dist.rs
index 0cb8971634f..cb352e217f0 100644
--- a/src/bootstrap/src/core/build_steps/dist.rs
+++ b/src/bootstrap/src/core/build_steps/dist.rs
@@ -471,7 +471,7 @@ impl Step for Rustc {
                 }
             }
 
-            {
+            if builder.config.llvm_enabled(compiler.host) && builder.config.llvm_tools_enabled {
                 let src_dir = builder.sysroot_target_bindir(compiler, host);
                 let llvm_objcopy = exe("llvm-objcopy", compiler.host);
                 let rust_objcopy = exe("rust-objcopy", compiler.host);