From: José Fonseca Date: Thu, 10 Feb 2011 12:16:26 +0000 (+0000) Subject: scons: Disable -mstackrealign on MinGW again. X-Git-Tag: 062012170305~7313 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d60f07489ef45fcdc46edbc51e662d2157a55cab;p=profile%2Fivi%2Fmesa.git scons: Disable -mstackrealign on MinGW again. It's still broken, however it doesn't show up on debug builds. --- diff --git a/scons/gallium.py b/scons/gallium.py index c414427..322b23b 100644 --- a/scons/gallium.py +++ b/scons/gallium.py @@ -349,12 +349,15 @@ def generate(env): '-m32', #'-march=pentium4', ] - if distutils.version.LooseVersion(ccversion) >= distutils.version.LooseVersion('4.2'): + if distutils.version.LooseVersion(ccversion) >= distutils.version.LooseVersion('4.2') \ + and (platform != 'windows' or env['build'] == 'debug' or True): # NOTE: We need to ensure stack is realigned given that we # produce shared objects, and have no control over the stack # alignment policy of the application. Therefore we need # -mstackrealign ore -mincoming-stack-boundary=2. # + # XXX: -O and -mstackrealign causes stack corruption on MinGW + # # XXX: We could have SSE without -mstackrealign if we always used # __attribute__((force_align_arg_pointer)), but that's not # always the case.