diff options
author | Simon Hausmann <simon.hausmann@qt.io> | 2018-06-21 10:01:43 +0200 |
---|---|---|
committer | Simon Hausmann <simon.hausmann@qt.io> | 2018-06-21 12:29:16 +0000 |
commit | c93aad50f44100fbd2fd6060fa7047316e930f28 (patch) | |
tree | ae951db1bdfa01b968575b3f015970fea32398f0 /tools | |
parent | 55db3890f44c7bef9a6ecb2b2f3bf31e288a3cd8 (diff) |
Re-add support for --jit and --interpret to qmljs
This is useful when debugging failures retrieved with qjstest --cat.
Change-Id: I5297636f1f06984c78f4684e9be6f57267ee7b8d
Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/qmljs/qmljs.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tools/qmljs/qmljs.cpp b/tools/qmljs/qmljs.cpp index ecc2cf44c5..c8abb7330a 100644 --- a/tools/qmljs/qmljs.cpp +++ b/tools/qmljs/qmljs.cpp @@ -80,6 +80,15 @@ int main(int argc, char *argv[]) bool cache = false; if (!args.isEmpty()) { + if (args.constFirst() == QLatin1String("--jit")) { + qputenv("QV4_JIT_CALL_THRESHOLD", QByteArray("0")); + args.removeFirst(); + } + if (args.constFirst() == QLatin1String("--interpret")) { + qputenv("QV4_FORCE_INTERPRETER", QByteArray("1")); + args.removeFirst(); + } + if (args.constFirst() == QLatin1String("--qml")) { runAsQml = true; args.removeFirst(); |