diff options
author | José Fonseca <[email protected]> | 2010-07-15 18:22:39 +0100 |
---|---|---|
committer | José Fonseca <[email protected]> | 2010-07-16 17:24:21 +0100 |
commit | 0a36a064a12de5caa0a6c1b245c9cc25bb00e5e0 (patch) | |
tree | c3e5e13b0bc62e20e085a2906c87cead16a1ef06 /src | |
parent | fab4ac9e942465cb184a74b3abc57c2e5353c5bf (diff) |
llvmpipe: Only use -mssse3 on gcc 4.3+
Diffstat (limited to 'src')
-rw-r--r-- | src/gallium/drivers/llvmpipe/SConscript | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/gallium/drivers/llvmpipe/SConscript b/src/gallium/drivers/llvmpipe/SConscript index 548423cb474..fd6ba1561ea 100644 --- 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') |