WeaselGames / godot_luaAPI

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

Add support for cross arch builds of luaJIT + lua 5.1 #89

Closed Trey2k closed 1 year ago

Trey2k commented 1 year ago

This bumps LuaJIT to v2.1 in order to support apple silicone. If it proves to be too unstable we will revert back. But I would prefer wider coverage.

This also adds support for cross compiling for 32 bit linux from 64 bit linux. Supoort needs to be looked into still for cross compiling x86 linux to arm. And 64 bit windows to 32 bit windows. And maybe android and ios builds too in the future.

Trey2k commented 1 year ago

Update: This PR now changes more, since luaJIT is not as portable I wanted to add a clean fallback option that is fully compatible. The luaapi_luajit option was removed in favor of the luaapi_luaver option. Currently there is 3 options 5.4, 5.1 and jit. The default is lua 5.4.

In the cases where luaJIT can not be built for the target platform. 5.1 is a fully compatible fallback option. At the cost of performance ofc.