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:
parent
c5b76b78c9
commit
3e7831ba12
1 changed files with 9 additions and 3 deletions
12
BUILD.gn
12
BUILD.gn
|
|
@ -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" ]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue