another gcc 4.2.x check for mstackrealign
authorAlan Hourihane <alanh@vmware.com>
Fri, 29 Jan 2010 10:22:22 +0000 (10:22 +0000)
committerAlan Hourihane <alanh@vmware.com>
Fri, 29 Jan 2010 10:22:50 +0000 (10:22 +0000)
scons/gallium.py

index 03856207ed0a260b2f52092355ebdd61e1cfe3fc..ac68bd604cdfdad802542b0483e0a3d70c4a64d0 100644 (file)
@@ -276,8 +276,11 @@ def generate(env):
                 # instead.
                 ccflags += [
                     '-mmmx', '-msse', '-msse2', # enable SIMD intrinsics
-                    '-mstackrealign', # ensure stack is aligned
                 ]
+               if distutils.version.LooseVersion(ccversion) >= distutils.version.LooseVersion('4.2'):
+                   ccflags += [
+                       '-mstackrealign', # ensure stack is aligned
+                   ]
         if env['machine'] == 'x86_64':
             ccflags += ['-m64']
         # See also: