Blame qtdeclarative-opensource-src-5.2.0-no_sse2.patch

cc16d9
diff --git a/src/qml/jsruntime/jsruntime.pri b/src/qml/jsruntime/jsruntime.pri
cc16d9
index 72010d3..2bd5acb 100644
cc16d9
--- a/src/qml/jsruntime/jsruntime.pri
cc16d9
+++ b/src/qml/jsruntime/jsruntime.pri
cc16d9
@@ -107,7 +107,7 @@ SOURCES += \
Rex Dieter 82f00b
 
Rex Dieter 82f00b
 # Use SSE2 floating point math on 32 bit instead of the default
Rex Dieter 82f00b
 # 387 to make test results pass on 32 and on 64 bit builds.
Rex Dieter 82f00b
-linux-g++*:isEqual(QT_ARCH,i386) {
Rex Dieter 82f00b
+linux-g++*:isEqual(QT_ARCH,i386):!no_sse2 {
Rex Dieter 82f00b
     QMAKE_CFLAGS += -march=pentium4 -msse2 -mfpmath=sse
Rex Dieter 82f00b
     QMAKE_CXXFLAGS += -march=pentium4 -msse2 -mfpmath=sse
Rex Dieter 82f00b
 }
cc16d9
diff --git a/src/qml/jsruntime/qv4global_p.h b/src/qml/jsruntime/qv4global_p.h
cc16d9
index b5dc674..97e9ae6 100644
cc16d9
--- a/src/qml/jsruntime/qv4global_p.h
cc16d9
+++ b/src/qml/jsruntime/qv4global_p.h
cc16d9
@@ -75,7 +75,7 @@ inline double trunc(double d) { return d > 0 ? floor(d) : ceil(d); }
Rex Dieter 82f00b
 
Rex Dieter 82f00b
 // White list architectures
Rex Dieter 82f00b
 
Rex Dieter 82f00b
-#if defined(Q_PROCESSOR_X86)
Rex Dieter 82f00b
+#if defined(Q_PROCESSOR_X86) && defined(__SSE2__)
Rex Dieter 82f00b
 #define V4_ENABLE_JIT
Rex Dieter 82f00b
 #elif defined(Q_PROCESSOR_X86_64)
Rex Dieter 82f00b
 #define V4_ENABLE_JIT