Skip to content

Commit

Permalink
compiler: suppress Apple ld linker warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
kubkon committed Dec 30, 2024
1 parent 2624def commit 94e9528
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions crates/compiler/build/src/link.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down
3 changes: 3 additions & 0 deletions crates/linker/src/generate_dylib/macho.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 94e9528

Please sign in to comment.