Skip to content

Commit

Permalink
Fix gn build error
Browse files Browse the repository at this point in the history
After commit d7d5ab8, projects based on
gn builds failed when running command:

gn gen out/<BUILDDIR> --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.
  • Loading branch information
HuYuxin authored and arcady-lunarg committed Sep 19, 2024
1 parent e611e99 commit d7a3dc6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -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" ]

Expand Down

0 comments on commit d7a3dc6

Please sign in to comment.