Skip to content

Commit 5530be5

Browse files
add lld for x86 as well
1 parent 3c35da5 commit 5530be5

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

.cargo/config.toml

+3
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ linker = "rust-lld"
1818
[target.aarch64-apple-darwin]
1919
linker = "rust-lld"
2020

21+
[target.x86_64-apple-darwin]
22+
linker = "rust-lld"
23+
2124
[alias]
2225
xtask = "run --package xtask --"
2326
tr-build = "build -p turbo"

packages/turbo-repository/rust/build.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
fn main() {
2-
#[cfg(not(all(target_os = "macos", target_arch = "aarch64")))]
2+
#[cfg(not(target_os = "macos"))]
33
napi_build::setup();
44

55
// This is a workaround for napi always including a GCC specific flag.
6-
#[cfg(all(target_os = "macos", target_arch = "aarch64"))]
6+
#[cfg(target_os = "macos")]
77
{
88
println!("cargo:rerun-if-env-changed=DEBUG_GENERATED_CODE");
99
println!("cargo:rerun-if-env-changed=TYPE_DEF_TMP_PATH");

0 commit comments

Comments
 (0)