glsl: work around MinGW 7.x compiler bug
authorBrian Paul <brianp@vmware.com>
Wed, 1 May 2019 20:22:57 +0000 (14:22 -0600)
committerBrian Paul <brianp@vmware.com>
Thu, 2 May 2019 02:06:54 +0000 (20:06 -0600)
commit413e55b5b99d7d135624f461797d450745b3bfbf
tree713ef87c9725edabd984b14f2b07ac585665add6
parent96540e4f0a99252bcd402a216525df84d9d74364
glsl: work around MinGW 7.x compiler bug

I'm not sure what triggered this, but building with
scons platform=windows toolchain=crossmingw machine=x86 build=profile
with MinGW g++ 7.3 or 7.4 causes an internal compiler error.

We can work around it by forcing -O1 optimization.

Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
Reviewed-by: Neha Bhende <bhenden@vmware.com>
src/compiler/glsl/builtin_variables.cpp