Jai bindings for LuaJIT.
- Linux x64
# create modules folder if it doesn't exist.
mkdir -p modules
# clone bindings into modules/luajit
git clone https://github.com/xyaman/luajit-jai.git modules/luajitSimple example: examples/main.jai.
Library is linked statically by default. You can change this by using optional module parameter:
#import "luajit"(USE_STATIC_LIB=false);This command will clone the LuaJIT repository (v2.1 branch), compile it, and replace the current folder and architecture-specific libraries. I want to add more flexibility in the future.
Example:
- Linux x64 →
linux/x64/libluajit.soandlinux/x64/libluajit0.a
jai generate.jai