Fix macos ld warning

This commit is contained in:
Richard Feldman 2023-07-29 17:30:00 -04:00
parent d853fee59b
commit 57fc441bf9
No known key found for this signature in database
GPG key ID: F1F21AA5B1D9E43B
2 changed files with 12 additions and 0 deletions

View file

@ -1078,6 +1078,12 @@ fn link_macos(
// "--gc-sections",
"-arch",
&arch,
// Suppress warnings, because otherwise it prints:
//
// ld: warning: -undefined dynamic_lookup may not work with chained fixups
//
// We can't disable that option without breaking either x64 mac or ARM mac
"-w",
"-macos_version_min",
&get_macos_version(),
])