diff --git a/fix-gcc12-build.patch b/fix-gcc12-build.patch index d052565..4ceeeef 100644 --- a/fix-gcc12-build.patch +++ b/fix-gcc12-build.patch @@ -6,7 +6,7 @@ diff -up SPIRV-Tools-45dd184c790d6bfc78a5a74a10c37e888b1823fa/source/spirv_targe } +// workaround gcc12/stdlibc++ -Wrestrict bug. -+#pragma GCC diagnostic ignore "-Wrestrict" ++#pragma GCC diagnostic ignored "-Wrestrict" 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