From b4841a5252ba95617a554d274c8bc40de3c3bc97 Mon Sep 17 00:00:00 2001 From: Logan McNaughton <848146+loganmc10@users.noreply.github.com> Date: Fri, 22 May 2026 23:32:15 +0200 Subject: [PATCH] Add linker argument for aarch64 macOS target --- .cargo/config.toml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.cargo/config.toml b/.cargo/config.toml index 1f1025e3..fd989a34 100644 --- a/.cargo/config.toml +++ b/.cargo/config.toml @@ -11,7 +11,10 @@ rustflags = ["-C", "link-arg=/STACK:8388608"] rustflags = ["-C", "target-cpu=x86-64-v3"] [target.'cfg(all(target_arch = "aarch64", target_os = "macos"))'] -rustflags = ["-C", "target-cpu=apple-m1"] +rustflags = [ + "-C", "target-cpu=apple-m1", + "-C", "link-arg=-Wl,-headerpad_max_install_names" +] [target.'cfg(all(target_arch = "aarch64", not(target_os = "macos")))'] rustflags = ["-C", "target-cpu=cortex-a76"]