Mirror of https://github.com/allyourcodebase/lua with compiled releases
Find a file
2025-09-24 13:22:00 +02:00
.github/workflows Create main.yml 2024-08-22 12:21:23 -06:00
.gitignore build script 2024-08-15 12:14:12 -06:00
build.zig update to lua 5.4.8 2025-09-24 13:22:00 +02:00
build.zig.zon update to lua 5.4.8 2025-09-24 13:22:00 +02:00
LICENCE build script 2024-08-15 12:14:12 -06:00
README.md add minimum_zig_version field 2025-05-16 15:55:52 -07:00

Lua

5.4.7

Build Instructions

To build all targets run

zig build

Build Artifacts

Name Artifact
"lua" The main lua library
"lua_exe" The lua interpreter
"luac" The lua bytecode compiler

Compile Options

Name Type Description
release bool optimize for end users
shared bool build as shared library
use_readline bool readline support for linux

Using in a zig project

To add to a zig project run:

zig fetch --save https://github.com/allyourcodebase/lua/archive/refs/tags/5.4.7.tar.gz

then add the following to your build.zig

const lua_dep = b.dependency("lua", .{
    .target = target,
    .release = optimize != .Debug,
});
const lua_lib = lua_dep.artifact(if (target.result.os.tag == .windows) "lua54" else "lua");