fix building issue on m2

This commit is contained in:
seemenkina 2024-11-05 13:52:21 +07:00
parent c6560ca368
commit dd1014547a
No known key found for this signature in database
1 changed files with 4 additions and 0 deletions

4
.cargo/config.toml Normal file
View File

@ -0,0 +1,4 @@
[target.'cfg(target_os = "macos")']
# when using osx, we need to link against some golang libraries, it did just work with this missing flags
# from: https://github.com/golang/go/issues/42459
rustflags = ["-C", "link-args=-framework CoreFoundation -framework Security -framework CoreServices -lresolv"]