Display an error on Linux in the absence of SSE2

This commit is contained in:
trav90 2018-05-26 20:54:19 -05:00 committed by Roy Tam
commit 989d1736b2
9 changed files with 129 additions and 0 deletions

View file

@ -23,6 +23,14 @@ NSDISTMODE = copy
include $(topsrcdir)/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_SSE2_STARTUP_ERROR
CXXFLAGS := $(filter-out -march=% -msse2 -mfpmath=sse,$(CXXFLAGS))
CXX := $(filter-out -march=% -msse2 -mfpmath=sse,$(CXX))
CXXFLAGS += -mno-sse2 -mfpmath=387
endif
ifeq ($(OS_ARCH),WINNT)
# Rebuild firefox.exe if the manifest changes - it's included by splash.rc.
# (this dependency should really be just for firefox.exe, not other targets)