Skip to content

Commit

Permalink
Added -fno-strict-aliasing option for shaderc to prevent glsl-optimiz…
Browse files Browse the repository at this point in the history
…er from crashing.
  • Loading branch information
bkaradzic committed Apr 9, 2013
1 parent 159b1ce commit 2281569
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions premake/shaderc.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 2281569

Please sign in to comment.