From d7a3dc619e28e1957e6f938b3d154dcf851e86e8 Mon Sep 17 00:00:00 2001 From: Yuxin Hu Date: Sun, 15 Sep 2024 21:09:33 -0700 Subject: [PATCH] Fix gn build error After commit d7d5ab8, projects based on gn builds failed when running command: gn gen out/ --check ``` ERROR at //third_party/glslang/src/glslang/Public/ResourceLimits.h:41:11: Include not allowed. ^---------------------- It is not in any dependency of //third_party/glslang/src:glslang_default_resource_limits_sources ``` Add the visibility.h to the build target glslang_default_resource_limits_sources to fix the error. --- BUILD.gn | 1 + 1 file changed, 1 insertion(+) diff --git a/BUILD.gn b/BUILD.gn index 383864c08c..b055c1a2be 100644 --- a/BUILD.gn +++ b/BUILD.gn @@ -302,6 +302,7 @@ source_set("glslang_default_resource_limits_sources") { "glslang/ResourceLimits/ResourceLimits.cpp", "glslang/Public/ResourceLimits.h", "glslang/Include/ResourceLimits.h", + "glslang/Include/visibility.h", ] public_configs = [ ":glslang_public" ]