Browse Source

ARM: Disable CPU detection for interpreter-only builds.

Mike Pall 14 years ago
parent
commit
1c5fbd4c1d
1 changed files with 2 additions and 0 deletions
  1. 2 0
      src/lib_jit.c

+ 2 - 0
src/lib_jit.c

@@ -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