mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 14:22:01 +00:00
Bug 1326027: include SSE2 flags in autospider; r=sfink
MozReview-Commit-ID: KWDBsmU798J --HG-- extra : rebase_source : 3c7ce36f9ecaab0dd70b4ddcc1e9715e1ee8b8c9 extra : histedit_source : 42cced527e07d09a90994a19188bb812803003f3
This commit is contained in:
parent
73ec7c660f
commit
963bd86937
@ -216,6 +216,15 @@ if word_bits == 32:
|
||||
elif platform.system() == 'Linux':
|
||||
if UNAME_M != 'arm':
|
||||
CONFIGURE_ARGS += ' --target=i686-pc-linux --host=i686-pc-linux'
|
||||
|
||||
# Add SSE2 support for x86/x64 architectures.
|
||||
if UNAME_M != 'arm':
|
||||
if platform.system() == 'Windows':
|
||||
sse_flags = '-arch:SSE2'
|
||||
else:
|
||||
sse_flags = '-msse -msse2 -mfpmath=sse'
|
||||
env['CCFLAGS'] = '{0} {1}'.format(env.get('CCFLAGS', ''), sse_flags)
|
||||
env['CXXFLAGS'] = '{0} {1}'.format(env.get('CXXFLAGS', ''), sse_flags)
|
||||
else:
|
||||
if platform.system() == 'Windows':
|
||||
CONFIGURE_ARGS += ' --target=x86_64-pc-mingw32 --host=x86_64-pc-mingw32'
|
||||
|
@ -498,9 +498,6 @@ elif CONFIG['JS_CODEGEN_ARM']:
|
||||
UNIFIED_SOURCES += [
|
||||
'jit/arm/Simulator-arm.cpp'
|
||||
]
|
||||
# Configuration used only for testing.
|
||||
if CONFIG['OS_ARCH'] == 'Linux' or CONFIG['OS_ARCH'] == 'Darwin':
|
||||
CXXFLAGS += [ '-msse2', '-mfpmath=sse' ]
|
||||
elif CONFIG['OS_ARCH'] == 'Darwin':
|
||||
SOURCES += [
|
||||
'jit/arm/llvm-compiler-rt/arm/aeabi_idivmod.S',
|
||||
|
Loading…
Reference in New Issue
Block a user