shaderc build failed because `-Werror=c++17-extensions`
Closed this issue · 2 comments
zhongfly commented
mpv-winbuild-cmake/src_packages/shaderc/third_party/glslang/glslang/MachineIndependent/../Include/../Include/PoolAlloc.h:121:12: error: inline variables are only available with '-std=c++17' or '-std=gnu++17' [-Werror=c++17-extensions]
121 | static inline constexpr unsigned char guardBlockBeginVal = 0xfb;
| ^~~~~~
shinchiro commented
Try change from -std=c++11
to -std=c++17
in DCMAKE_CXX_FLAGS. Does it fix? I dont have the toolchain atm, so cannot test
CharlesMengCA commented
also need to apply this patch google/shaderc@d26faf7 in this pull google/shaderc#1356