From d0b1e037aff862706a412b77737092866c0f4959 Mon Sep 17 00:00:00 2001 From: Luca Palmieri <20745048+LukeMathWalker@users.noreply.github.com> Date: Mon, 9 Sep 2024 16:26:22 +0200 Subject: [PATCH] chore: fix linker on x86 macOS --- libs/.cargo/config.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/.cargo/config.toml b/libs/.cargo/config.toml index 25e4d0cf..3cc95a6c 100644 --- a/libs/.cargo/config.toml +++ b/libs/.cargo/config.toml @@ -15,6 +15,6 @@ rustflags = ["-C", "linker=clang", "-C", "link-arg=-fuse-ld=lld"] # On MacOS, `brew install llvm` and follow steps in `brew info llvm` [target.x86_64-apple-darwin] -rustflags = ["-C", "link-arg=-fuse-ld=lld"] +rustflags = ["-C", "link-arg=-fuse-ld=/usr/local/opt/llvm/bin/ld64.lld"] [target.aarch64-apple-darwin] rustflags = ["-C", "link-arg=-fuse-ld=/opt/homebrew/opt/llvm/bin/ld64.lld"]