summaryrefslogtreecommitdiff
path: root/scons
diff options
context:
space:
mode:
authorAlan Hourihane <alanh@vmware.com>2010-01-29 10:22:22 +0000
committerAlan Hourihane <alanh@vmware.com>2010-01-29 10:22:50 +0000
commit7683271e63e4527fc72f309472181c743922e7e9 (patch)
treea3776a368aba64b6f4177355ee1b2b1fe8ca3923 /scons
parentdf8273494ed9a92932a19fa3d19f5160dfe30881 (diff)
another gcc 4.2.x check for mstackrealign
Diffstat (limited to 'scons')
-rw-r--r--scons/gallium.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/scons/gallium.py b/scons/gallium.py
index 03856207ed0..ac68bd604cd 100644
--- a/scons/gallium.py
+++ b/scons/gallium.py
@@ -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: