mirror of
https://github.com/OpenMW/openmw.git
synced 2025-02-28 12:39:41 +00:00
Add sol::lib::jit to actually enable JIT
This commit is contained in:
parent
b67d89f2e0
commit
8161771969
1 changed files with 4 additions and 0 deletions
|
@ -179,6 +179,10 @@ namespace LuaUtil
|
|||
mSol.open_libraries(sol::lib::base, sol::lib::coroutine, sol::lib::math, sol::lib::bit32, sol::lib::string,
|
||||
sol::lib::table, sol::lib::os, sol::lib::debug);
|
||||
|
||||
#ifndef NO_LUAJIT
|
||||
mSol.open_libraries(sol::lib::jit);
|
||||
#endif // NO_LUAJIT
|
||||
|
||||
mSol["math"]["randomseed"](static_cast<unsigned>(std::time(nullptr)));
|
||||
mSol["math"]["randomseed"] = [] {};
|
||||
|
||||
|
|
Loading…
Reference in a new issue