projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fab4ac9
)
llvmpipe: Only use -mssse3 on gcc 4.3+
author
José Fonseca
<jfonseca@vmware.com>
Thu, 15 Jul 2010 17:22:39 +0000
(18:22 +0100)
committer
José Fonseca
<jfonseca@vmware.com>
Fri, 16 Jul 2010 16:24:21 +0000
(17:24 +0100)
src/gallium/drivers/llvmpipe/SConscript
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/llvmpipe/SConscript
b/src/gallium/drivers/llvmpipe/SConscript
index 548423cb474baccfa93e563534463344897eb88e..fd6ba1561ea771bae686452a1da324768773cb53 100644
(file)
--- a/
src/gallium/drivers/llvmpipe/SConscript
+++ b/
src/gallium/drivers/llvmpipe/SConscript
@@
-1,3
+1,5
@@
+import distutils.version
+
Import('*')
if not env['llvm']:
@@
-26,7
+28,9
@@
env.Depends('lp_tile_soa.c', [
# Only enable SSSE3 for lp_tile_soa_sse3.c
ssse3_env = env.Clone()
-if env['gcc'] and env['machine'] in ('x86', 'x86_64'):
+if env['gcc'] \
+ and distutils.version.LooseVersion(env['CCVERSION']) >= distutils.version.LooseVersion('4.3') \
+ and env['machine'] in ('x86', 'x86_64') :
ssse3_env.Append(CCFLAGS = ['-mssse3'])
lp_tile_soa_os = ssse3_env.SharedObject('lp_tile_soa.c')