mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-26 17:10:11 +01:00
llvmpipe: Only use -mssse3 on gcc 4.3+
This commit is contained in:
parent
fab4ac9e94
commit
0a36a064a1
1 changed files with 5 additions and 1 deletions
|
|
@ -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')
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue