compiler: suppress Apple ld linker warnings

This commit is contained in:
Jakub Konka 2024-12-30 10:09:31 +01:00
parent 2624def4cd
commit 94e9528c51
2 changed files with 6 additions and 0 deletions

View file

@ -1048,6 +1048,9 @@ fn link_macos(
// slightly easier than unpacking compressed info from the __got section
// and fixups load command.
"-no_fixup_chains",
// Suppress all warnings, at least for now. Ideally, there are no warnings
// from the linker.
"-w",
])
.args(input_paths)
.args(extra_link_flags());

View file

@ -81,6 +81,9 @@ pub fn create_dylib_macho(
"macos",
&macos_version,
&macos_version,
// Suppress all warnings, at least for now. Ideally, there are no warnings
// from the linker.
"-w",
])
.output()
.unwrap();