Fix JIT selection on Android with ARM builds
authorSimon Hausmann <simon.hausmann@digia.com>
Fri, 5 Jul 2013 08:37:15 +0000 (10:37 +0200)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Fri, 5 Jul 2013 20:27:37 +0000 (22:27 +0200)
Debug builds on Android are done as ARM builds instead of thumb because of
problems with debugging thumb builds with older toolchains. However for the JIT
we're not interested in such a choice and prefer to have a consistent choice of
JIT - thumb2 generated code in release _and_ debug builds.

Change-Id: I36b1ec76311b409e36e3fb38c46c6c193adb1be8
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
src/3rdparty/masm/masm-defs.pri

index b349f5a..59d6827 100644 (file)
@@ -1,5 +1,11 @@
 !ios: DEFINES += V4_ENABLE_JIT
 
+# On Qt/Android/ARM release builds are thumb and debug builds arm,
+# but we'll force the JIT to always generate thumb2
+android:isEqual(QT_ARCH, "arm") {
+    DEFINES += WTF_CPU_ARM_THUMB2
+}
+
 DEFINES += WTF_EXPORT_PRIVATE="" JS_EXPORT_PRIVATE=""
 
 win*: DEFINES += NOMINMAX