1
Description: Disable SSE/SSE2 code paths when building on i386,
2
because it's not available at build time. This is Debian/Ubuntu specific.
3
Author: Rico Tzschichholz <ricotz@ubuntu.com>
6
diff -r a3447f709bef dom/base/moz.build
7
--- a/dom/base/moz.build
8
+++ b/dom/base/moz.build
11
# Are we targeting x86-32 or x86-64? If so, we want to include SSE2 code for
13
-if CONFIG["INTEL_ARCHITECTURE"]:
14
+if CONFIG["CPU_ARCH"] == "x86_64":
15
SOURCES += ["nsTextFragmentSSE2.cpp"]
16
SOURCES["nsTextFragmentSSE2.cpp"].flags += CONFIG["SSE2_FLAGS"]
18
diff -r a3447f709bef dom/base/nsTextFragment.cpp
19
--- a/dom/base/nsTextFragment.cpp
20
+++ b/dom/base/nsTextFragment.cpp
22
#include "nsTextFragmentImpl.h"
25
+#if defined(__i386__)
26
+#undef MOZILLA_MAY_SUPPORT_SSE2
29
#define TEXTFRAG_WHITE_AFTER_NEWLINE 50
30
#define TEXTFRAG_MAX_NEWLINES 7