From ae300d9b11aa85d366adb8666887970ff661223d Mon Sep 17 00:00:00 2001 From: Miku AuahDark Date: Thu, 16 Sep 2021 22:26:54 +0800 Subject: [PATCH] Revert "Enable JIT in Android" This reverts commit b092347823bdba79ee5dbed5704c43ddc46cbb2d. --- src/modules/love/love.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/modules/love/love.cpp b/src/modules/love/love.cpp index 9ae8f5c2e..a9900c2bb 100644 --- a/src/modules/love/love.cpp +++ b/src/modules/love/love.cpp @@ -36,6 +36,10 @@ #ifdef LOVE_ANDROID #include +extern "C" +{ +#include "luajit.h" +} #endif // LOVE_ANDROID #ifdef LOVE_LEGENDARY_CONSOLE_IO_HACK @@ -432,6 +436,7 @@ int luaopen_love(lua_State *L) lua_setfield(L, -2, "_version_codename"); #ifdef LOVE_ANDROID + luaJIT_setmode(L, 0, LUAJIT_MODE_ENGINE | LUAJIT_MODE_OFF); lua_register(L, "print", w_print_sdl_log); #endif