Skip to content

Commit

Permalink
Add sol::lib::jit to actually enable JIT ( resolves #899 )
Browse files Browse the repository at this point in the history
  • Loading branch information
WSSDude committed Oct 29, 2023
1 parent 91565e3 commit d4239ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/scripting/Scripting.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d4239ed

Please sign in to comment.