Browse Source

android: disabling JIT by default as it may cause performance problems. To enable it run jit.on().

Martin Felis 9 years ago
parent
commit
007e113ec5
1 changed files with 5 additions and 0 deletions
  1. 5 0
      src/love.cpp

+ 5 - 0
src/love.cpp

@@ -46,6 +46,10 @@ extern "C" {
 
 #ifdef LOVE_ANDROID
 #include "common/android.h"
+extern "C" 
+{
+#include "luajit.h"
+}
 #endif
 
 #ifdef LOVE_WINDOWS
@@ -252,6 +256,7 @@ int main(int argc, char **argv)
 	luaL_openlibs(L);
 
 #ifdef LOVE_ANDROID
+	luaJIT_setmode(L, 0, LUAJIT_MODE_ENGINE| LUAJIT_MODE_OFF);
 	lua_register(L, "print", l_print_sdl_log);
 #endif