mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-03 11:52:19 +00:00
Fix macos ld warning
This commit is contained in:
parent
d853fee59b
commit
57fc441bf9
2 changed files with 12 additions and 0 deletions
|
@ -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(),
|
||||
])
|
||||
|
|
|
@ -71,6 +71,12 @@ pub fn create_dylib_macho(
|
|||
dummy_obj_file.path().to_str().unwrap(),
|
||||
"-o",
|
||||
dummy_lib_file.to_str().unwrap(),
|
||||
// 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",
|
||||
])
|
||||
.output()
|
||||
.unwrap();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue