Do not build spirv-* with Werror
authorTimo Röhling <roehling@debian.org>
Sat, 4 May 2024 18:37:47 +0000 (20:37 +0200)
committerTimo Röhling <roehling@debian.org>
Fri, 17 May 2024 16:12:19 +0000 (18:12 +0200)
Gbp-Pq: Name 0021-Do-not-build-spirv-with-Werror.patch

third_party/spirv-cross/tnt/CMakeLists.txt
third_party/spirv-tools/CMakeLists.txt

index 25da48747aecbc24cb4522344c83b6826a0cfd1f..cb375bf4de0a231e904a8a49155685f5f31c2434 100644 (file)
@@ -37,7 +37,7 @@ endif()
 # -DCMAKE_CXX_COMPILE_FLAGS
 # However, we require the C++11 dialect.
 if (NOT "${MSVC}")
-  set(spirv-compiler-options ${spirv-compiler-options} -std=c++11 -Wall -Wextra -Werror -Wshadow)
+  set(spirv-compiler-options ${spirv-compiler-options} -std=c++11 -Wall -Wextra -Wshadow)
   set(spirv-compiler-defines ${spirv-compiler-defines} __STDC_LIMIT_MACROS)
 
   if(SPIRV_CROSS_EXCEPTIONS_TO_ASSERTIONS)
index 9ea29ab2eaf4a33c389a75bc637c68be2acc4a81..f967a877304fcec026c8d7b292b08e2c0b4e6a5e 100755 (executable)
@@ -94,7 +94,7 @@ endif(SPIRV_BUILD_COMPRESSION)
 
 option(SPIRV_BUILD_FUZZER "Build spirv-fuzz" OFF)
 
-option(SPIRV_WERROR "Enable error on warning" ON)
+option(SPIRV_WERROR "Enable error on warning" OFF)
 if(("${CMAKE_CXX_COMPILER_ID}" MATCHES "GNU") OR (("${CMAKE_CXX_COMPILER_ID}" MATCHES "Clang") AND (NOT CMAKE_CXX_SIMULATE_ID STREQUAL "MSVC")))
   set(COMPILER_IS_LIKE_GNU TRUE)
 endif()