1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-26 18:35:20 +00:00

Merge branch 'enable-jit' into 'master'

Add `sol::lib::jit` to actually enable JIT

See merge request OpenMW/openmw!3639
This commit is contained in:
jvoisin 2023-12-08 14:41:12 +00:00
commit 7894e7a748

View File

@ -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"] = [] {};