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:
Benjamin Bouvier 2016-12-29 10:31:38 +01:00
Родитель 73ec7c660f
Коммит 963bd86937
2 изменённых файлов: 9 добавлений и 3 удалений

Просмотреть файл

@ -216,6 +216,15 @@ if word_bits == 32:
elif platform.system() == 'Linux': elif platform.system() == 'Linux':
if UNAME_M != 'arm': if UNAME_M != 'arm':
CONFIGURE_ARGS += ' --target=i686-pc-linux --host=i686-pc-linux' 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: else:
if platform.system() == 'Windows': if platform.system() == 'Windows':
CONFIGURE_ARGS += ' --target=x86_64-pc-mingw32 --host=x86_64-pc-mingw32' CONFIGURE_ARGS += ' --target=x86_64-pc-mingw32 --host=x86_64-pc-mingw32'

Просмотреть файл

@ -498,9 +498,6 @@ elif CONFIG['JS_CODEGEN_ARM']:
UNIFIED_SOURCES += [ UNIFIED_SOURCES += [
'jit/arm/Simulator-arm.cpp' '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': elif CONFIG['OS_ARCH'] == 'Darwin':
SOURCES += [ SOURCES += [
'jit/arm/llvm-compiler-rt/arm/aeabi_idivmod.S', 'jit/arm/llvm-compiler-rt/arm/aeabi_idivmod.S',