From 22815698ec6efb710a0138b0fa05e4f3b8956fb1 Mon Sep 17 00:00:00 2001 From: bkaradzic Date: Mon, 8 Apr 2013 22:06:00 -0700 Subject: [PATCH] Added -fno-strict-aliasing option for shaderc to prevent glsl-optimizer from crashing. --- premake/shaderc.lua | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/premake/shaderc.lua b/premake/shaderc.lua index 4f09837b9..44ffaaadd 100644 --- a/premake/shaderc.lua +++ b/premake/shaderc.lua @@ -22,6 +22,11 @@ project "shaderc" "/wd4996" -- warning C4996: 'strdup': The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name: _strdup. } + configuration { "mingw or linux or osx" } + buildoptions { + "-fno-strict-aliasing" -- glsl-optimizer has bugs if strict aliasing is used. + } + configuration { "windows", "vs*" } includedirs { GLSL_OPTIMIZER .. "include/c99",