From beddea1d3d1a77ff8d187ff66e50280af00e52e1 Mon Sep 17 00:00:00 2001 From: Erik Verbruggen Date: Thu, 24 Jul 2014 15:57:29 +0200 Subject: V4 JIT: enable the JIT when compiling with clang on ARM. The macros that were used to detect Thumb2 support on the cores were gcc specific. Change-Id: I76959899b41f440d4b7ad7a5436059a3dc102111 Reviewed-by: Simon Hausmann --- src/qml/jsruntime/qv4global_p.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/qml/jsruntime') diff --git a/src/qml/jsruntime/qv4global_p.h b/src/qml/jsruntime/qv4global_p.h index 38d353c2e9..039f5c1e78 100644 --- a/src/qml/jsruntime/qv4global_p.h +++ b/src/qml/jsruntime/qv4global_p.h @@ -85,6 +85,8 @@ inline double trunc(double d) { return d > 0 ? floor(d) : ceil(d); } #if defined(thumb2) || defined(__thumb2__) || ((defined(__thumb) || defined(__thumb__)) && __TARGET_ARCH_THUMB-0 == 4) #define V4_ENABLE_JIT +#elif defined(__ARM_ARCH_ISA_THUMB) && __ARM_ARCH_ISA_THUMB == 2 // clang 3.5 and later will set this if the core supports the Thumb-2 ISA. +#define V4_ENABLE_JIT #endif #endif -- cgit v1.2.3