Skip to content

Commit 32a22b2

Browse files
committed
[moz] Workaround to disable SPIRV codegen.
For some reason this CMakeLists file is not picking up on the fact that we are cross-compiling. This causes it to assume that we are targetting linux instead of windows and unconditionally include SPIRV in the build, which we do not want. As a workaround until we figure out how to get the build to understand that we are targetting Windows, comment out the part that enforces SPIRV to be in the build.
1 parent 127ce2f commit 32a22b2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

CMakeLists.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -140,9 +140,9 @@ option(ENABLE_SPIRV_CODEGEN "Enables SPIR-V code generation." OFF)
140140
option(SPIRV_BUILD_TESTS "Build targets for the SPIR-V unit tests." OFF)
141141

142142
# Enable SPIR-V CodeGen for Linux by default.
143-
if(NOT WIN32)
144-
set(ENABLE_SPIRV_CODEGEN ON)
145-
endif()
143+
# if(NOT WIN32)
144+
# set(ENABLE_SPIRV_CODEGEN ON)
145+
# endif()
146146

147147
if (${SPIRV_BUILD_TESTS})
148148
enable_testing()

0 commit comments

Comments
 (0)