Skip to content

Commit f4ea26f

Browse files
alexzorinivanitskiy
authored andcommitted
cargo: make macOS linker flags workaround apply to Apple silicon
1 parent 8fddb1c commit f4ea26f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.cargo/config.toml

+5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
#
22
# https://stackoverflow.com/questions/28124221/error-linking-with-cc-failed-exit-code-1
33
#
4+
[target.aarch64-apple-darwin]
5+
rustflags = [
6+
"-C", "link-arg=-undefined",
7+
"-C", "link-arg=dynamic_lookup",
8+
]
49
[target.x86_64-apple-darwin]
510
rustflags = [
611
"-C", "link-arg=-undefined",

0 commit comments

Comments
 (0)