Module: Mesa
Branch: master
Commit: 7683271e63e4527fc72f309472181c743922e7e9
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=7683271e63e4527fc72f309472181c743922e7e9

Author: Alan Hourihane <al...@vmware.com>
Date:   Fri Jan 29 10:22:22 2010 +0000

another gcc 4.2.x check for mstackrealign

---

 scons/gallium.py |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/scons/gallium.py b/scons/gallium.py
index 0385620..ac68bd6 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:

_______________________________________________
mesa-commit mailing list
mesa-commit@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to