BUILD.gn: only use complete_static_lib on mac

This commit is contained in:
Corentin Wallez 2018-10-02 09:23:08 -04:00
parent 4508a8170a
commit a26827adc2

View File

@ -157,7 +157,11 @@ static_library("glslang_static") {
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" ]