aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--gn/BUILD.gn8
1 files changed, 8 insertions, 0 deletions
diff --git a/gn/BUILD.gn b/gn/BUILD.gn
index 5c2baf08f1..cf94889a70 100644
--- a/gn/BUILD.gn
+++ b/gn/BUILD.gn
@@ -194,6 +194,14 @@ config("default") {
if (is_linux) {
libs += [ "pthread" ]
}
+ if (is_mac) {
+ # Disable linker warnings. They're usually just annoyances like,
+ # ld: warning: text-based stub file
+ # /System/Library/Frameworks/foo.framework/foo.tbd and library file
+ # /System/Library/Frameworks/foo.framework/foo are out of sync.
+ # Falling back to library file for linking.
+ ldflags += [ "-Wl,-w" ]
+ }
if (sanitize != "") {
# You can either pass the sanitizers directly, e.g. "address,undefined",