spirv-tools: disable blanket -Werror

`-Werror` flag usually causes build failures due to minor changes in
compiler versions. They might be useful for developers themselves but
are rarely useful for distributions.

For example right now `spirv-tools` fails to compile on `gcc-13` due to a
`gcc` infelicity: https://gcc.gnu.org/PR107488

While this concrete instance is a compiler bug generally `-Werror` makes
users' lives harder. Specific `-Werror=<foo>` are better way to prevent
certain classes of bugs.

The change removes planket `-Werror` with `-DSPIRV_WERROR=OFF` flag.

+6 -1
+6 -1
pkgs/development/tools/spirv-tools/default.nix
··· 15 16 nativeBuildInputs = [ cmake python3 ]; 17 18 - cmakeFlags = [ "-DSPIRV-Headers_SOURCE_DIR=${spirv-headers.src}" ]; 19 20 # https://github.com/KhronosGroup/SPIRV-Tools/issues/3905 21 postPatch = ''
··· 15 16 nativeBuildInputs = [ cmake python3 ]; 17 18 + cmakeFlags = [ 19 + "-DSPIRV-Headers_SOURCE_DIR=${spirv-headers.src}" 20 + # Avoid blanket -Werror to evade build failures on less 21 + # tested compilers. 22 + "-DSPIRV_WERROR=OFF" 23 + ]; 24 25 # https://github.com/KhronosGroup/SPIRV-Tools/issues/3905 26 postPatch = ''