Fix SPIR-V support in GN build

The cmake build recently got ENABLE_SPIRV which is enabled by default.
This was missing from the GN build, accidentally removing SPIR-V support
in this build.
This commit is contained in:
Shahbaz Youssefi 2024-09-20 16:35:33 -04:00 committed by arcady-lunarg
parent c5b76b78c9
commit 3e7831ba12

View file

@ -235,7 +235,7 @@ template("glslang_sources_common") {
]
}
defines = []
defines = [ "ENABLE_SPIRV=1" ]
if (invoker.enable_opt) {
sources += [ "SPIRV/SpvTools.cpp" ]
defines += [ "ENABLE_OPT=1" ]
@ -318,7 +318,10 @@ executable("glslang_validator") {
if (!is_win) {
cflags = [ "-Woverflow" ]
}
defines = [ "ENABLE_OPT=1" ]
defines = [
"ENABLE_OPT=1",
"ENABLE_SPIRV=1",
]
deps = [
":glslang_build_info",
":glslang_default_resource_limits_sources",
@ -338,7 +341,10 @@ executable("glslang_validator") {
executable("spirv-remap") {
sources = [ "StandAlone/spirv-remap.cpp" ]
defines = [ "ENABLE_OPT=1" ]
defines = [
"ENABLE_OPT=1",
"ENABLE_SPIRV=1",
]
deps = [ ":glslang_sources" ]
include_dirs = [ "${spirv_tools_dir}/include" ]