summaryrefslogtreecommitdiff
path: root/build.zig
diff options
context:
space:
mode:
authorChris Boesch <chrboesch@noreply.codeberg.org>2026-06-26 12:40:52 +0200
committerChris Boesch <chrboesch@noreply.codeberg.org>2026-06-26 12:40:52 +0200
commite55204d3429fbe4077c142e3a6a6e5a49e9ccb2b (patch)
tree56665a6298818bf883a64368d627fea255c0a805 /build.zig
parent529b294cc3da53702905cace380c3e5d9282a69a (diff)
parentfe465a466e436c9362449f8ffe2701970b8cac39 (diff)
Merge pull request 'added absolute path to exercises' (#475) from root_path into main
Reviewed-on: https://codeberg.org/ziglings/exercises/pulls/475
Diffstat (limited to 'build.zig')
-rw-r--r--build.zig1
1 files changed, 1 insertions, 0 deletions
diff --git a/build.zig b/build.zig
index afc1021..1dfc7be 100644
--- a/build.zig
+++ b/build.zig
@@ -81,6 +81,7 @@ pub fn build(b: *Build) !void {
const run = b.addRunArtifact(elrond);
run.addArg(b.fmt("--zig={s}", .{b.graph.zig_exe}));
run.addArg(b.fmt("--work-path={s}", .{work_path}));
+ run.addArg(b.fmt("--root-path={s}", .{b.root.root_dir.path.?}));
if (exno) |n| {
run.addArg(b.fmt("--only={d}", .{n}));