diff options
author | Mathias Hasselmann <mathias.hasselmann@kdab.com> | 2016-01-10 20:23:13 +0100 |
---|---|---|
committer | Mathias Hasselmann <mathias.hasselmann@kdab.com> | 2016-01-14 19:05:36 +0000 |
commit | a29c62165949977943d9e2e40ba7531aced4762f (patch) | |
tree | 661191b7f34b17ce4013ede165b3ba6766d9f385 /src/qml/jsruntime | |
parent | 0636c14610ad84014f7985017228b248166d17be (diff) |
Print warning if JIT is disabled
The wiki will provide information on how to work around the issue.
Change-Id: I4409f5b4af0668ab28197adb8766898124e8cec8
Reviewed-by: Lars Knoll <lars.knoll@theqtcompany.com>
Diffstat (limited to 'src/qml/jsruntime')
-rw-r--r-- | src/qml/jsruntime/qv4engine.cpp | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/src/qml/jsruntime/qv4engine.cpp b/src/qml/jsruntime/qv4engine.cpp index 2560f065cf..4c525b453f 100644 --- a/src/qml/jsruntime/qv4engine.cpp +++ b/src/qml/jsruntime/qv4engine.cpp @@ -216,16 +216,25 @@ ExecutionEngine::ExecutionEngine(EvalISelFactory *factory) MemoryManager::GCBlocker gcBlocker(memoryManager); if (!factory) { + bool jitDisabled = true; #ifdef V4_ENABLE_JIT static const bool forceMoth = !qEnvironmentVariableIsEmpty("QV4_FORCE_INTERPRETER"); - if (forceMoth) + if (forceMoth) { factory = new Moth::ISelFactory; - else + } else { factory = new JIT::ISelFactory; + jitDisabled = false; + } #else // !V4_ENABLE_JIT factory = new Moth::ISelFactory; #endif // V4_ENABLE_JIT + + if (jitDisabled) { + qWarning("JIT is disabled for QML. Property bindings and animations will be " + "very slow. Visit https://wiki.qt.io/V4 to learn about possible " + "solutions for your platform."); + } } iselFactory.reset(factory); |