diff options
| author | t <t@tjp.lol> | 2026-06-01 13:47:35 -0600 |
|---|---|---|
| committer | t <t@tjp.lol> | 2026-06-01 17:03:05 -0600 |
| commit | b6afac69b586dd9d68cccf686f3220581848c78b (patch) | |
| tree | 31808c44cf80c17c5bffd5139453a6358d6291b8 /build.zig | |
| parent | f4c72eef847b093212c4dd6136cd7e0b1478afe2 (diff) | |
rework lua tool scheduler
Diffstat (limited to 'build.zig')
| -rw-r--r-- | build.zig | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -52,6 +52,10 @@ pub fn build(b: *std.Build) void { versions_mod.addOption([]const u8, "lua_version", lua_version); versions_mod.addOption([]const u8, "lua_short_version", lua_short_version); versions_mod.addOption([]const u8, "luarocks_version", luarocks_version); + // Absolute repo root, for tests that need to locate source-tree + // assets (e.g. `agent/tools/*.lua`) regardless of the test + // runner's cwd. + versions_mod.addOption([]const u8, "repo_root", b.build_root.path orelse "."); // CLI executable const exe_mod = b.createModule(.{ |
