mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-27 13:59:08 +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",
|
// "--gc-sections",
|
||||||
"-arch",
|
"-arch",
|
||||||
&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",
|
"-macos_version_min",
|
||||||
&get_macos_version(),
|
&get_macos_version(),
|
||||||
])
|
])
|
||||||
|
|
|
@ -71,6 +71,12 @@ pub fn create_dylib_macho(
|
||||||
dummy_obj_file.path().to_str().unwrap(),
|
dummy_obj_file.path().to_str().unwrap(),
|
||||||
"-o",
|
"-o",
|
||||||
dummy_lib_file.to_str().unwrap(),
|
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()
|
.output()
|
||||||
.unwrap();
|
.unwrap();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue