Skip to content

Commit 81ff879

Browse files
authored
zig: run examples from their directories (#4063)
So that they can find their respective resource folders.
1 parent eff7b06 commit 81ff879

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

examples/build.zig

+1
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ fn add_module(comptime module: []const u8, b: *std.Build, target: std.Build.Reso
7575
const install_cmd = b.addInstallArtifact(exe, .{});
7676

7777
const run_cmd = b.addRunArtifact(exe);
78+
run_cmd.cwd = b.path(module);
7879
run_cmd.step.dependOn(&install_cmd.step);
7980

8081
const run_step = b.step(name, name);

0 commit comments

Comments
 (0)