]> git.ipfire.org Git - thirdparty/LuaJIT.git/commitdiff
ARM: Disable CPU detection for interpreter-only builds.
authorMike Pall <mike>
Thu, 8 Sep 2011 13:34:53 +0000 (15:34 +0200)
committerMike Pall <mike>
Thu, 8 Sep 2011 13:34:53 +0000 (15:34 +0200)
src/lib_jit.c

index 9b28520d308485f848a7c1bbed9d0afe062285de..bfafa724a7ab7779c7c358215e26998a7cdfa281 100644 (file)
@@ -577,6 +577,7 @@ static uint32_t jit_cpudetect(lua_State *L)
 #endif
 #endif
 #elif LJ_TARGET_ARM
+#if LJ_HASJIT
   /* Compile-time ARM CPU detection. */
 #if __ARM_ARCH_7__ || __ARM_ARCH_7A__ || __ARM_ARCH_7R__
   flags |= JIT_F_ARMV6|JIT_F_ARMV6T2|JIT_F_ARMV7;
@@ -598,6 +599,7 @@ static uint32_t jit_cpudetect(lua_State *L)
     }
   }
 #endif
+#endif
 #elif LJ_TARGET_PPC || LJ_TARGET_PPCSPE
   /* Nothing to do. */
 #else