X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=scons%2Fgallium.py;h=587294af71dcbd0e7bc7f10d498f74d7880e28db;hb=a9f71b3bba86771be56ff1def716beb370decd22;hp=38782ac7266f5535d3f006de9e8a2757a945fbb6;hpb=890679d4322e7ba4f12f32532a3fdd277edff886;p=mesa.git diff --git a/scons/gallium.py b/scons/gallium.py index 38782ac7266..587294af71d 100644 --- a/scons/gallium.py +++ b/scons/gallium.py @@ -343,10 +343,18 @@ def generate(env): ccflags += [ '-m32', #'-march=pentium4', - '-mmmx', '-msse', '-msse2', # enable SIMD intrinsics - '-mstackrealign', # ensure stack is aligned -- do not enabled -msse without it! #'-mfpmath=sse', ] + if platform != 'windows': + # XXX: -mstackrealign causes stack corruption on MinGW. Ditto + # for -mincoming-stack-boundary=2. Still enable it on other + # platforms for now, but we can't rely on it for cross platform + # code. We have to use __attribute__((force_align_arg_pointer)) + # instead. + ccflags += [ + '-mmmx', '-msse', '-msse2', # enable SIMD intrinsics + '-mstackrealign', # ensure stack is aligned + ] if env['machine'] == 'x86_64': ccflags += ['-m64'] # See also: