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

Rex Dieter 82f00b7
diff -up qtdeclarative-opensource-src-5.2.0/src/qml/jsruntime/jsruntime.pri.no_sse2 qtdeclarative-opensource-src-5.2.0/src/qml/jsruntime/jsruntime.pri
Rex Dieter 82f00b7
--- qtdeclarative-opensource-src-5.2.0/src/qml/jsruntime/jsruntime.pri.no_sse2	2013-12-08 11:10:19.000000000 -0600
Rex Dieter 82f00b7
+++ qtdeclarative-opensource-src-5.2.0/src/qml/jsruntime/jsruntime.pri	2013-12-12 11:30:36.763009499 -0600
Rex Dieter 82f00b7
@@ -91,7 +91,7 @@ HEADERS += \
Rex Dieter 82f00b7
 
Rex Dieter 82f00b7
 # Use SSE2 floating point math on 32 bit instead of the default
Rex Dieter 82f00b7
 # 387 to make test results pass on 32 and on 64 bit builds.
Rex Dieter 82f00b7
-linux-g++*:isEqual(QT_ARCH,i386) {
Rex Dieter 82f00b7
+linux-g++*:isEqual(QT_ARCH,i386):!no_sse2 {
Rex Dieter 82f00b7
     QMAKE_CFLAGS += -march=pentium4 -msse2 -mfpmath=sse
Rex Dieter 82f00b7
     QMAKE_CXXFLAGS += -march=pentium4 -msse2 -mfpmath=sse
Rex Dieter 82f00b7
 }
Rex Dieter 82f00b7
diff -up qtdeclarative-opensource-src-5.2.0/src/qml/jsruntime/qv4global_p.h.no_sse2 qtdeclarative-opensource-src-5.2.0/src/qml/jsruntime/qv4global_p.h
Rex Dieter 82f00b7
--- qtdeclarative-opensource-src-5.2.0/src/qml/jsruntime/qv4global_p.h.no_sse2	2013-12-08 11:10:19.000000000 -0600
Rex Dieter 82f00b7
+++ qtdeclarative-opensource-src-5.2.0/src/qml/jsruntime/qv4global_p.h	2013-12-12 11:32:21.555865718 -0600
Rex Dieter 82f00b7
@@ -45,6 +45,8 @@
Rex Dieter 82f00b7
 #include <QtCore/qglobal.h>
Rex Dieter 82f00b7
 #include <QString>
Rex Dieter 82f00b7
 #include <qtqmlglobal.h>
Rex Dieter 82f00b7
+// To get __SSE2__ defined when building with MSVC
Rex Dieter 7baada3
+//#include <private/qsimd_p.h>
Rex Dieter 82f00b7
 
Rex Dieter 82f00b7
 #if defined(Q_CC_MSVC)
Rex Dieter 82f00b7
 #include <float.h>
Rex Dieter 82f00b7
@@ -70,7 +72,7 @@ inline double trunc(double d) { return d
Rex Dieter 82f00b7
 
Rex Dieter 82f00b7
 // White list architectures
Rex Dieter 82f00b7
 
Rex Dieter 82f00b7
-#if defined(Q_PROCESSOR_X86)
Rex Dieter 82f00b7
+#if defined(Q_PROCESSOR_X86) && defined(__SSE2__)
Rex Dieter 82f00b7
 #define V4_ENABLE_JIT
Rex Dieter 82f00b7
 #elif defined(Q_PROCESSOR_X86_64)
Rex Dieter 82f00b7
 #define V4_ENABLE_JIT