summaryrefslogtreecommitdiff
path: root/build.zig
diff options
context:
space:
mode:
authort <t@tjp.lol>2026-06-23 09:38:23 -0600
committert <t@tjp.lol>2026-06-23 10:53:26 -0600
commit69a1ee138bb78ad4663fe2d9e58678f7b0d07b74 (patch)
tree453d3ad42a07536220e6ca5d91b439ff57793e32 /build.zig
parent538a5d926fa626a00cc3dc12c555f11f82867efd (diff)
ponytail simplifications to panto cli and lua extensiosn
Diffstat (limited to 'build.zig')
-rw-r--r--build.zig20
1 files changed, 10 insertions, 10 deletions
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 <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",
};