summaryrefslogtreecommitdiff
path: root/scons
diff options
context:
space:
mode:
authorJosé Fonseca <jrfonseca@tungstengraphics.com>2008-07-04 22:27:50 +0900
committerJosé Fonseca <jrfonseca@tungstengraphics.com>2008-07-04 22:28:57 +0900
commit194cfc7a4ed86653db34be0e331ad7c23b5334eb (patch)
tree6c20c1cbd9bb7e35dba1b962310f42f24b0bd8be /scons
parentdd3311aa89035aa2e624f54b6914cfbcf57b33d7 (diff)
scons: Enable gcc SSE2 intrinsics on x86.
Diffstat (limited to 'scons')
-rw-r--r--scons/gallium.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/scons/gallium.py b/scons/gallium.py
index bfdd2de8db3..62030f0ab7b 100644
--- a/scons/gallium.py
+++ b/scons/gallium.py
@@ -272,7 +272,12 @@ def generate(env):
if env['profile']:
cflags += ['-pg']
if env['machine'] == 'x86':
- cflags += ['-m32']
+ cflags += [
+ '-m32',
+ #'-march=pentium4',
+ '-mmmx', '-msse', '-msse2', # enable SIMD intrinsics
+ #'-mfpmath=sse',
+ ]
if env['machine'] == 'x86_64':
cflags += ['-m64']
cflags += [