summaryrefslogtreecommitdiffstats
path: root/browser/app/Makefile.in
diff options
context:
space:
mode:
authortrav90 <travawine@palemoon.org>2018-05-26 20:54:19 -0500
committertrav90 <travawine@palemoon.org>2018-05-27 08:55:43 -0500
commitb9fc7c5eae61d168e677d96c1f1ad8a14cd1c3bd (patch)
tree253d6a1e6394b251d0fdd2c86697e1d042766690 /browser/app/Makefile.in
parent3f215e15fb60f5b62b7f1cd3771ac7ecc9326d1a (diff)
downloadUXP-b9fc7c5eae61d168e677d96c1f1ad8a14cd1c3bd.tar
UXP-b9fc7c5eae61d168e677d96c1f1ad8a14cd1c3bd.tar.gz
UXP-b9fc7c5eae61d168e677d96c1f1ad8a14cd1c3bd.tar.lz
UXP-b9fc7c5eae61d168e677d96c1f1ad8a14cd1c3bd.tar.xz
UXP-b9fc7c5eae61d168e677d96c1f1ad8a14cd1c3bd.zip
Display an error on Linux in the absence of SSE2
Diffstat (limited to 'browser/app/Makefile.in')
-rw-r--r--browser/app/Makefile.in8
1 files changed, 8 insertions, 0 deletions
diff --git a/browser/app/Makefile.in b/browser/app/Makefile.in
index d807b4337..cb35ed1fb 100644
--- a/browser/app/Makefile.in
+++ b/browser/app/Makefile.in
@@ -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)