Use no-chromium-code in GN build.
authorJamie Madill <jmadill@chromium.org>
Mon, 14 Mar 2022 15:12:49 +0000 (11:12 -0400)
committerCharles Giessen <46324611+charles-lunarg@users.noreply.github.com>
Mon, 14 Mar 2022 19:45:57 +0000 (13:45 -0600)
Aligns the configs so that new warnings turned on in Chromium
Clang don't show up in the loader project.

Fixes #878

BUILD.gn

index dc1f872..ce89465 100644 (file)
--- a/BUILD.gn
+++ b/BUILD.gn
@@ -190,10 +190,8 @@ if (!is_android) {
       frameworks = [ "CoreFoundation.framework" ]
     }
     public_deps = [ "$vulkan_headers_dir:vulkan_headers" ]
-    if (build_with_chromium) {
-      configs -= [ "//build/config/compiler:chromium_code" ]
-      configs += [ "//build/config/compiler:no_chromium_code" ]
-    }
+    configs -= [ "//build/config/compiler:chromium_code" ]
+    configs += [ "//build/config/compiler:no_chromium_code" ]
     configs += [ ":vulkan_internal_config" ]
     public_configs = [ ":vulkan_loader_config" ]
     configs -= vulkan_undefine_configs