WeaselGames / godot_luaAPI

Godot LuaAPI
https://luaapi.weaselgames.info
Other
371 stars 28 forks source link

Add LuaJIT support #87

Closed Trey2k closed 1 year ago

Trey2k commented 1 year ago

This PR adds support for LuaJIT to the module. It has been added as a compile time option(scons luaapi_luajit=yes). LuaJIT is less portable then lua and has not been cleanly integrated into the godot build system like lua 5.4 has been. Instead we have scons call either the make or msvc build scripts provided with luaJIT. Because of this the module will still default to lua 5.4

As far as I can tell its a pretty seamless integration. Only the major differences from the lua 5.1 and 5.4 APIs caused issues. And they were minimal.

Trey2k commented 1 year ago

I think this is okay to merge now as nothing changes by default. ATM no documentation changes should be needed as the API is identical for both builds.