summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorEskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@digia.com>2013-10-02 14:50:18 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-10-04 14:37:22 +0200
commitab90eefcc0714dfba032e7e4aa4c94cb8c6cc40c (patch)
tree806dac75b9317203cc2bf25114327d1d021ba7f5 /tools
parent72d60ea08c14037250459a5424ffee7a36b909b1 (diff)
Disable JavaScriptCore JIT for Android when building on Windows
On Linux, we will do a configure test to determine whether JIT should be turned off when compiling JavaScriptCore in the QtScript module, but this test is never run on Windows. The result was that JIT was disabled on Linux and enabled on Windows, and compilation broke on Windows. Task-number: QTBUG-33780 Change-Id: I37991c6da98b35330c07c54f2a0b143d20780c91 Reviewed-by: BogDan Vatra <bogdan@kde.org> Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com> Reviewed-by: Paul Olav Tvete <paul.tvete@digia.com>
Diffstat (limited to 'tools')
-rw-r--r--tools/configure/configureapp.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/tools/configure/configureapp.cpp b/tools/configure/configureapp.cpp
index 914e7c9bfd..416fd4cb04 100644
--- a/tools/configure/configureapp.cpp
+++ b/tools/configure/configureapp.cpp
@@ -1663,6 +1663,7 @@ void Configure::applySpecSpecifics()
dictionary[ "REDUCE_RELOCATIONS" ] = "yes";
dictionary[ "QT_GETIFADDRS" ] = "no";
dictionary[ "QT_XKBCOMMON" ] = "no";
+ dictionary[ "JAVASCRIPTCORE_JIT" ] = "no";
}
}
@@ -2648,6 +2649,12 @@ void Configure::generateOutputVars()
if (!dictionary["QT_LFLAGS_SQLITE"].isEmpty())
qmakeVars += "QT_LFLAGS_SQLITE += " + formatPath(dictionary["QT_LFLAGS_SQLITE"]);
+ if (dictionary["JAVASCRIPTCORE_JIT"] == "no")
+ qmakeVars += "JAVASCRIPTCORE_JIT = no";
+ else if (dictionary["JAVASCRIPTCORE_JIT"] == "yes")
+ qmakeVars += "JAVASCRIPTCORE_JIT = yes";
+ // else let JavaScriptCore decide
+
if (dictionary[ "OPENGL" ] == "yes")
qtConfig += "opengl";