Skip to content

Commit

Permalink
cargo: make macOS linker flags workaround apply to Apple silicon
Browse files Browse the repository at this point in the history
  • Loading branch information
alexzorin authored and ivanitskiy committed May 23, 2023
1 parent 8fddb1c commit f4ea26f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .cargo/config.toml
Original file line number Diff line number Diff line change
@@ -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",
Expand Down

0 comments on commit f4ea26f

Please sign in to comment.