Bug 1535845 - Port bug 1403346, part 14: Move Thunderbird sse check to moz.build. r=jorgk
This commit is contained in:
Родитель
1626738b5d
Коммит
b3c0bbc54d
|
@ -26,9 +26,7 @@ include $(moztopsrcdir)/config/config.mk
|
|||
# If we are trying to show an error dialog about the lack of SSE2 support,
|
||||
# make sure that code itself doesn't use SSE2.
|
||||
ifdef MOZ_LINUX_32_SSE2_STARTUP_ERROR
|
||||
CXXFLAGS := $(filter-out -march=% -msse -msse2 -mfpmath=sse,$(CXXFLAGS))
|
||||
CXX := $(filter-out -march=% -msse -msse2 -mfpmath=sse,$(CXX))
|
||||
CXXFLAGS += -mno-sse -mno-sse2 -mfpmath=387
|
||||
CXX += -march=pentiumpro
|
||||
endif
|
||||
|
||||
|
|
|
@ -76,6 +76,12 @@ if CONFIG['MOZ_GPSD']:
|
|||
|
||||
if CONFIG['MOZ_LINUX_32_SSE2_STARTUP_ERROR']:
|
||||
DEFINES['MOZ_LINUX_32_SSE2_STARTUP_ERROR'] = True
|
||||
COMPILE_FLAGS['OS_CXXFLAGS'] = [
|
||||
f for f in COMPILE_FLAGS.get('OS_CXXFLAGS', [])
|
||||
if not f.startswith('-march=') and f not in ('-msse', '-msse2', '-mfpmath=sse')
|
||||
] + [
|
||||
'-mno-sse', '-mno-sse2', '-mfpmath=387',
|
||||
]
|
||||
|
||||
JS_PREFERENCE_PP_FILES += [
|
||||
'profile/all-thunderbird.js',
|
||||
|
|
Загрузка…
Ссылка в новой задаче