From 77d8fa006cb8a2e944ad4d4fd28b9585c853a9ae Mon Sep 17 00:00:00 2001 From: Andrej Redeky Date: Sun, 29 Oct 2023 11:06:59 +0100 Subject: [PATCH] Add `sol::lib::jit` to actually enable JIT --- src/scripting/Scripting.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/scripting/Scripting.cpp b/src/scripting/Scripting.cpp index 1433088d..ddf27d01 100644 --- a/src/scripting/Scripting.cpp +++ b/src/scripting/Scripting.cpp @@ -49,7 +49,7 @@ void Scripting::Initialize() auto lua = m_lua.Lock(); auto& luaVm = lua.Get(); - luaVm.open_libraries(sol::lib::base, sol::lib::string, sol::lib::io, sol::lib::math, sol::lib::package, sol::lib::os, sol::lib::table, sol::lib::bit32); + luaVm.open_libraries(sol::lib::base, sol::lib::string, sol::lib::io, sol::lib::math, sol::lib::package, sol::lib::os, sol::lib::table, sol::lib::bit32, sol::lib::jit); luaVm.require("sqlite3", luaopen_lsqlite3); // make sure to set package path to current directory scope