Explorar el Código

Merge pull request #1517 from Kangz/mac_complete_lib

BUILD.gn: only use complete_static_lib on mac
John Kessenich hace 7 años
padre
commit
2e0806c7be
Se han modificado 1 ficheros con 5 adiciones y 1 borrados
  1. 5 1
      BUILD.gn

+ 5 - 1
BUILD.gn

@@ -157,7 +157,11 @@ static_library("glslang_static") {
   deps = [
   deps = [
     ":glslang_sources",
     ":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:chromium_code" ]
   configs += [ "//build/config/compiler:no_chromium_code" ]
   configs += [ "//build/config/compiler:no_chromium_code" ]