From 69a1ee138bb78ad4663fe2d9e58678f7b0d07b74 Mon Sep 17 00:00:00 2001 From: t Date: Tue, 23 Jun 2026 09:38:23 -0600 Subject: ponytail simplifications to panto cli and lua extensiosn --- build.zig | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'build.zig') diff --git a/build.zig b/build.zig index ceebee1..c0b17ab 100644 --- a/build.zig +++ b/build.zig @@ -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 /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 /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 +/// `/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 `/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", }; -- cgit v1.3