4cb5cd4a25
i686: use nosse2_hack again
40 lines
2.2 KiB
Diff
40 lines
2.2 KiB
Diff
diff -up qtdeclarative-everywhere-src-5.11.0/src/qml/jsruntime/jsruntime.pri.no_sse2 qtdeclarative-everywhere-src-5.11.0/src/qml/jsruntime/jsruntime.pri
|
|
--- qtdeclarative-everywhere-src-5.11.0/src/qml/jsruntime/jsruntime.pri.no_sse2 2018-04-30 06:54:03.000000000 -0500
|
|
+++ qtdeclarative-everywhere-src-5.11.0/src/qml/jsruntime/jsruntime.pri 2018-05-24 16:15:51.151738531 -0500
|
|
@@ -115,6 +115,11 @@ SOURCES += \
|
|
$$PWD/qv4value.cpp \
|
|
$$PWD/qv4executableallocator.cpp
|
|
|
|
+linux-g++*:isEqual(QT_ARCH,i386):!no_sse2 {
|
|
+ QMAKE_CFLAGS += -msse2 -mfpmath=sse
|
|
+ QMAKE_CXXFLAGS += -msse2 -mfpmath=sse
|
|
+}
|
|
+
|
|
valgrind {
|
|
DEFINES += V4_USE_VALGRIND
|
|
}
|
|
diff -up qtdeclarative-everywhere-src-5.11.0/src/qml/jsruntime/qv4global_p.h.no_sse2 qtdeclarative-everywhere-src-5.11.0/src/qml/jsruntime/qv4global_p.h
|
|
--- qtdeclarative-everywhere-src-5.11.0/src/qml/jsruntime/qv4global_p.h.no_sse2 2018-04-30 06:54:03.000000000 -0500
|
|
+++ qtdeclarative-everywhere-src-5.11.0/src/qml/jsruntime/qv4global_p.h 2018-05-24 20:23:38.642642420 -0500
|
|
@@ -88,7 +88,7 @@ inline double trunc(double d) { return d
|
|
//
|
|
// NOTE: This should match the logic in qv4targetplatform_p.h!
|
|
|
|
-#if defined(Q_PROCESSOR_X86) && (QT_POINTER_SIZE == 4) \
|
|
+#if defined(Q_PROCESSOR_X86) && (QT_POINTER_SIZE == 4) && defined(__SSE2__) \
|
|
&& (defined(Q_OS_WIN) || defined(Q_OS_LINUX) || defined(Q_OS_QNX) || defined(Q_OS_FREEBSD))
|
|
# define V4_ENABLE_JIT
|
|
#elif defined(Q_PROCESSOR_X86_64) && (QT_POINTER_SIZE == 8) \
|
|
diff -up qtdeclarative-everywhere-src-5.11.0/src/qml/qml/v8/qv8engine.cpp.no_sse2 qtdeclarative-everywhere-src-5.11.0/src/qml/qml/v8/qv8engine.cpp
|
|
--- qtdeclarative-everywhere-src-5.11.0/src/qml/qml/v8/qv8engine.cpp.no_sse2 2018-05-24 16:15:51.152738550 -0500
|
|
+++ qtdeclarative-everywhere-src-5.11.0/src/qml/qml/v8/qv8engine.cpp 2018-05-24 20:21:01.273574503 -0500
|
|
@@ -131,7 +131,7 @@ QV8Engine::QV8Engine(QJSEngine *qq, QV4:
|
|
{
|
|
#ifdef Q_PROCESSOR_X86_32
|
|
if (!qCpuHasFeature(SSE2)) {
|
|
- qFatal("This program requires an X86 processor that supports SSE2 extension, at least a Pentium 4 or newer");
|
|
+ qDebug("This program requires an X86 processor that supports SSE2 extension, at least a Pentium 4 or newer, processors missing the extension are NOT supported to run QML2 code!");
|
|
}
|
|
#endif
|
|
|