Merge pull request #1517 from Kangz/mac_complete_lib

BUILD.gn: only use complete_static_lib on mac
This commit is contained in:
John Kessenich 2018-10-02 08:47:33 -06:00 committed by GitHub
commit 2e0806c7be
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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" ]