Zig build of the LuaJIT repository created by Mike Pall.
-
Add
luajit
as a dependency in yourbuild.zig.zon
.build.zig.zon
example.{ .name = "<name_of_your_package>", .version = "<version_of_your_package>", .dependencies = .{ .luajit = .{ .url = "https://github.com/tensorush/zig-luajit/archive/<git_tag_or_commit_hash>.tar.gz", .hash = "<package_hash>", }, }, }
Set
<package_hash>
to12200000000000000000000000000000000000000000000000000000000000000000
, and Zig will provide the correct found value in an error message. -
Add
luajit
as a module in yourbuild.zig
.build.zig
exampleconst luajit = b.dependency("luajit", .{}); exe.addModule("luajit", luajit.artifact("lib"));