diff options
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(.{ |
