From 15f46c3c1f7dd52283a9e451d0470c38a8f56f5f Mon Sep 17 00:00:00 2001 From: Mike Klein Date: Thu, 7 Dec 2017 12:48:57 -0500 Subject: [PATCH] quiet down Mac linker warnings Change-Id: I9a2a061e7a021587441f3f39427306309e0341e8 Reviewed-on: https://skia-review.googlesource.com/82042 Reviewed-by: Herb Derby Commit-Queue: Mike Klein --- gn/BUILD.gn | 8 ++++++++ 1 file changed, 8 insertions(+) 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",