spirv-tools/fix-gcc12-build.patch

13 lines
754 B
Diff
Raw Normal View History

2022-02-15 22:21:55 +00:00
diff -up SPIRV-Tools-45dd184c790d6bfc78a5a74a10c37e888b1823fa/source/spirv_target_env.cpp.dma ./SPIRV-Tools-45dd184c790d6bfc78a5a74a10c37e888b1823fa/source/spirv_target_env.cpp
--- SPIRV-Tools-45dd184c790d6bfc78a5a74a10c37e888b1823fa/source/spirv_target_env.cpp.dma 2022-02-16 08:20:38.927239298 +1000
+++ SPIRV-Tools-45dd184c790d6bfc78a5a74a10c37e888b1823fa/source/spirv_target_env.cpp 2022-02-16 08:20:42.262301854 +1000
@@ -397,6 +397,8 @@ std::string spvLogStringForEnv(spv_targe
return "Unknown";
}
+// workaround gcc12/stdlibc++ -Wrestrict bug.
2022-02-15 22:28:53 +00:00
+#pragma GCC diagnostic ignored "-Wrestrict"
2022-02-15 22:21:55 +00:00
std::string spvTargetEnvList(const int pad, const int wrap) {
std::string ret;
size_t max_line_len = wrap - pad; // The first line isn't padded