From a26827adc2c275f2b3a136be12cc3a01e5a0ddad Mon Sep 17 00:00:00 2001 From: Corentin Wallez Date: Tue, 2 Oct 2018 09:23:08 -0400 Subject: [PATCH] BUILD.gn: only use complete_static_lib on mac --- BUILD.gn | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/BUILD.gn b/BUILD.gn index 91bb4bba..8f8e81f0 100644 --- a/BUILD.gn +++ b/BUILD.gn @@ -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" ]