about summary refs log tree commit diff
path: root/src/bootstrap
diff options
context:
space:
mode:
authorJieyou Xu <jieyouxu@outlook.com>2024-11-19 18:48:02 +0800
committerJieyou Xu <jieyouxu@outlook.com>2024-11-19 18:48:02 +0800
commit38f0c099b2e684ea689633eb424d8737a1063a5e (patch)
tree8b31a2278e1646a799f27c2d0088edf1edc96c85 /src/bootstrap
parente6c1e14e5d487a90abeb5ba4dccc608521bbfb54 (diff)
downloadrust-38f0c099b2e684ea689633eb424d8737a1063a5e.tar.gz
rust-38f0c099b2e684ea689633eb424d8737a1063a5e.zip
Default-enable `llvm_tools_enabled` when no `config.toml` is present
Diffstat (limited to 'src/bootstrap')
-rw-r--r--src/bootstrap/src/core/config/config.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/bootstrap/src/core/config/config.rs b/src/bootstrap/src/core/config/config.rs
index 95b1303fa71..e706aba977b 100644
--- a/src/bootstrap/src/core/config/config.rs
+++ b/src/bootstrap/src/core/config/config.rs
@@ -1255,6 +1255,10 @@ impl Config {
             },
             out: PathBuf::from("build"),
 
+            // This is needed by codegen_ssa on macOS to ship `llvm-objcopy` aliased to
+            // `rust-objcopy` to workaround bad `strip`s on macOS.
+            llvm_tools_enabled: true,
+
             ..Default::default()
         }
     }