diff options
author | Mike Klein <mtklein@chromium.org> | 2017-12-07 12:48:57 -0500 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-12-07 20:03:40 +0000 |
commit | 15f46c3c1f7dd52283a9e451d0470c38a8f56f5f (patch) | |
tree | 97908a79fdfef824f6419ec597bcfbde175de493 | |
parent | b681972e79993e37adb9de9666cc9064b528db8b (diff) |
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>
-rw-r--r-- | gn/BUILD.gn | 8 |
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", |