From 94e9528c513fa214fd6571149b87943896b62532 Mon Sep 17 00:00:00 2001 From: Jakub Konka Date: Mon, 30 Dec 2024 10:09:31 +0100 Subject: [PATCH] compiler: suppress Apple ld linker warnings --- crates/compiler/build/src/link.rs | 3 +++ crates/linker/src/generate_dylib/macho.rs | 3 +++ 2 files changed, 6 insertions(+) diff --git a/crates/compiler/build/src/link.rs b/crates/compiler/build/src/link.rs index 3f2e6ba33a0..339512f5aa5 100644 --- a/crates/compiler/build/src/link.rs +++ b/crates/compiler/build/src/link.rs @@ -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()); diff --git a/crates/linker/src/generate_dylib/macho.rs b/crates/linker/src/generate_dylib/macho.rs index 6c400fc67eb..3cebab9ecf8 100644 --- a/crates/linker/src/generate_dylib/macho.rs +++ b/crates/linker/src/generate_dylib/macho.rs @@ -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();