diff options
Diffstat (limited to 'build.zig')
| -rw-r--r-- | build.zig | 20 |
1 files changed, 10 insertions, 10 deletions
@@ -39,7 +39,7 @@ pub fn build(b: *std.Build) void { const md4c_dep = b.dependency("md4c", .{}); // Fetch upstream Lua source (used both for our static library and - // staged at runtime as the `include/` headers under $PANTO_HOME). + // staged at runtime as the `include/` headers under the data home). // Reproducibility comes from the content-addressed hash in // build.zig.zon. const lua_src = b.dependency("lua_src", .{}); @@ -53,12 +53,12 @@ pub fn build(b: *std.Build) void { const luarocks_embed_path = generateLuarocksEmbed(b, luarocks_src); // Same trick for the Lua headers: bundle them so first-run - // bootstrap can stage them under $PANTO_HOME/rocks/lua-X.Y.Z/include/ + // bootstrap can stage them under <data home>/rocks/lua-X.Y.Z/include/ // for luarocks to find when compiling C rocks. const lua_headers_embed_path = generateLuaHeadersEmbed(b, lua_src); // And the in-repo `agent/` tree: bundled into the binary and - // staged at $PANTO_HOME/agent/ on first run. This is panto's + // staged at <data home>/agent/ on first run. This is panto's // "base" extension/tool layer (read/write/edit/bash etc.). const agent_embed_path = generateAgentEmbed(b); @@ -355,7 +355,7 @@ fn generateLuarocksEmbed( /// Codegen step: walk the in-repo `agent/` tree and emit a Zig module /// embedding every file. Bootstrap stages the result under -/// `$PANTO_HOME/agent/` on first run, where the runtime's extension +/// `<data home>/agent/` on first run, where the runtime's extension /// loader finds it as the "base" layer (below user and project). /// /// Unlike `generateLuarocksEmbed`, the agent tree lives in-repo and @@ -431,7 +431,7 @@ fn addAgentTreeFileInputs( /// Codegen step: emit a Zig module that exposes every Lua public header /// from the Lua source tarball as embedded bytes. The bootstrap stages -/// these under `$PANTO_HOME/rocks/lua-X.Y.Z/include/` so luarocks can +/// these under `<data home>/rocks/lua-X.Y.Z/include/` so luarocks can /// compile C rocks against them. fn generateLuaHeadersEmbed( b: *std.Build, @@ -498,12 +498,12 @@ fn generatePantoSoEmbed( // point) and luac.c (compiler entry point). const lua_files = [_][]const u8{ // Core VM - "lapi.c", "lcode.c", "lctype.c", "ldebug.c", "ldo.c", - "ldump.c", "lfunc.c", "lgc.c", "llex.c", "lmem.c", - "lobject.c", "lopcodes.c", "lparser.c", "lstate.c", "lstring.c", - "ltable.c", "ltm.c", "lundump.c", "lvm.c", "lzio.c", + "lapi.c", "lcode.c", "lctype.c", "ldebug.c", "ldo.c", + "ldump.c", "lfunc.c", "lgc.c", "llex.c", "lmem.c", + "lobject.c", "lopcodes.c", "lparser.c", "lstate.c", "lstring.c", + "ltable.c", "ltm.c", "lundump.c", "lvm.c", "lzio.c", // Auxiliary + standard library - "lauxlib.c", "lbaselib.c", "lcorolib.c", "ldblib.c", "liolib.c", + "lauxlib.c", "lbaselib.c", "lcorolib.c", "ldblib.c", "liolib.c", "lmathlib.c", "loadlib.c", "loslib.c", "lstrlib.c", "ltablib.c", "lutf8lib.c", "linit.c", }; |
