From 2eff59c883d0f8898ea551c1a807793c47165fcd Mon Sep 17 00:00:00 2001 From: oiupoyt Date: Tue, 13 Oct 2026 11:46:49 +0530 Subject: [PATCH] chore(config): track macos apple-darwin linker configuration --- .cargo/config.toml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/.cargo/config.toml b/.cargo/config.toml index cefa8528..a8802e8d 100644 --- a/.cargo/config.toml +++ b/.cargo/config.toml @@ -2,6 +2,22 @@ linker = "clang" rustflags = ["-C", "link-arg=-fuse-ld=lld"] +[target.aarch64-apple-darwin] +linker = "aarch64-apple-darwin-clang" +rustflags = [ + "-C", "link-arg=-fuse-ld=lld", + "-C", "link-arg=-isysroot", + "-C", "link-arg=/home/oiupoyt/.local/share/MacOSX11.3.sdk", +] + +[target.x86_64-apple-darwin] +linker = "x86_64-apple-darwin-clang" +rustflags = [ + "-C", "link-arg=-fuse-ld=lld", + "-C", "link-arg=-isysroot", + "-C", "link-arg=/home/oiupoyt/.local/share/MacOSX11.3.sdk", +] + # Linux and Macos by default have 8MB of stack storage. # Windows has 1MB, it isn't enough, so it's changed to 8MB also. [target.x86_64-pc-windows-msvc]