From f4ea26fc19b664cfcd975dca182a194d93c1d88c Mon Sep 17 00:00:00 2001 From: Alex Zorin Date: Sat, 20 May 2023 17:12:29 +1000 Subject: [PATCH] cargo: make macOS linker flags workaround apply to Apple silicon --- .cargo/config.toml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.cargo/config.toml b/.cargo/config.toml index 8d1dff8..42bcf6d 100644 --- a/.cargo/config.toml +++ b/.cargo/config.toml @@ -1,6 +1,11 @@ # # https://stackoverflow.com/questions/28124221/error-linking-with-cc-failed-exit-code-1 # +[target.aarch64-apple-darwin] +rustflags = [ + "-C", "link-arg=-undefined", + "-C", "link-arg=dynamic_lookup", +] [target.x86_64-apple-darwin] rustflags = [ "-C", "link-arg=-undefined",