quiet down Mac linker warnings
Change-Id: I9a2a061e7a021587441f3f39427306309e0341e8
Reviewed-on: https://skia-review.googlesource.com/82042
Reviewed-by: Herb Derby <herb@google.com>
Commit-Queue: Mike Klein <mtklein@chromium.org>
diff --git a/gn/BUILD.gn b/gn/BUILD.gn
index 5c2baf0..cf94889 100644
--- a/gn/BUILD.gn
+++ b/gn/BUILD.gn
@@ -194,6 +194,14 @@
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",