/[packages]/cauldron/qtdeclarative5/current/SOURCES/qtdeclarative-everywhere-src-5.12.2-no_sse2.patch
ViewVC logotype

Contents of /cauldron/qtdeclarative5/current/SOURCES/qtdeclarative-everywhere-src-5.12.2-no_sse2.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1378841 - (show annotations) (download)
Tue Mar 19 13:19:15 2019 UTC (2 months ago) by daviddavid
File size: 1926 byte(s)
SILENT: rediff no_sse2 patch

1 diff -Nrup a/src/qml/jsruntime/jsruntime.pri b/src/qml/jsruntime/jsruntime.pri
2 --- a/src/qml/jsruntime/jsruntime.pri 2019-02-25 13:56:40.000000000 +0100
3 +++ b/src/qml/jsruntime/jsruntime.pri 2019-03-19 14:14:56.798164802 +0100
4 @@ -156,6 +156,11 @@ SOURCES += \
5 $$PWD/qv4value.cpp \
6 $$PWD/qv4executableallocator.cpp
7
8 +linux-g++*:isEqual(QT_ARCH,i386):!no_sse2 {
9 + QMAKE_CFLAGS += -msse2 -mfpmath=sse
10 + QMAKE_CXXFLAGS += -msse2 -mfpmath=sse
11 +}
12 +
13 valgrind {
14 DEFINES += V4_USE_VALGRIND
15 }
16 diff -Nrup a/src/qml/jsruntime/qv4global_p.h b/src/qml/jsruntime/qv4global_p.h
17 --- a/src/qml/jsruntime/qv4global_p.h 2019-02-25 13:56:40.000000000 +0100
18 +++ b/src/qml/jsruntime/qv4global_p.h 2019-03-19 14:16:25.386168687 +0100
19 @@ -88,7 +88,7 @@ inline double trunc(double d) { return d
20 //
21 // NOTE: This should match the logic in qv4targetplatform_p.h!
22
23 -#if defined(Q_PROCESSOR_X86_32) && (QT_POINTER_SIZE == 4) \
24 +#if defined(Q_PROCESSOR_X86_32) && (QT_POINTER_SIZE == 4) && defined(__SSE2__) \
25 && (defined(Q_OS_WIN) || defined(Q_OS_LINUX) || defined(Q_OS_QNX) || defined(Q_OS_FREEBSD))
26 # define V4_ENABLE_JIT
27 #elif defined(Q_PROCESSOR_X86_64) && (QT_POINTER_SIZE == 8) \
28 diff -Nrup a/src/qml/qml/v8/qv8engine.cpp b/src/qml/qml/v8/qv8engine.cpp
29 --- a/src/qml/qml/v8/qv8engine.cpp 2019-02-25 13:56:40.000000000 +0100
30 +++ b/src/qml/qml/v8/qv8engine.cpp 2019-03-19 14:17:18.649171024 +0100
31 @@ -141,7 +141,7 @@ QV8Engine::QV8Engine(QV4::ExecutionEngin
32 #ifndef Q_OS_WASM // wasm does not have working simd QTBUG-63924
33 #ifdef Q_PROCESSOR_X86_32
34 if (!qCpuHasFeature(SSE2)) {
35 - qFatal("This program requires an X86 processor that supports SSE2 extension, at least a Pentium 4 or newer");
36 + 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!");
37 }
38 #endif
39 #endif

  ViewVC Help
Powered by ViewVC 1.1.26