commit | a26827adc2c275f2b3a136be12cc3a01e5a0ddad | [log] [tgz] |
---|---|---|
author | Corentin Wallez <cwallez@chromium.org> | Tue Oct 02 09:23:08 2018 -0400 |
committer | Corentin Wallez <cwallez@chromium.org> | Tue Oct 02 09:28:15 2018 -0400 |
tree | 2b792a0ced71489f82861c23fee10b295827ac43 | |
parent | 4508a8170a8f62ede770fb1da34c1cc600e0c596 [diff] |
BUILD.gn: only use complete_static_lib on mac
diff --git a/BUILD.gn b/BUILD.gn index 91bb4bb..8f8e81f 100644 --- a/BUILD.gn +++ b/BUILD.gn
@@ -157,7 +157,11 @@ deps = [ ":glslang_sources", ] - complete_static_lib = true + + # Without this the macOS linker complains that the static library is empty + if (is_mac) { + complete_static_lib = true + } configs -= [ "//build/config/compiler:chromium_code" ] configs += [ "//build/config/compiler:no_chromium_code" ]