Skip to content

Commit

Permalink
zig: run examples from their directories (#4063)
Browse files Browse the repository at this point in the history
So that they can find their respective resource folders.
  • Loading branch information
myQwil authored Jun 16, 2024
1 parent eff7b06 commit 81ff879
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions examples/build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ fn add_module(comptime module: []const u8, b: *std.Build, target: std.Build.Reso
const install_cmd = b.addInstallArtifact(exe, .{});

const run_cmd = b.addRunArtifact(exe);
run_cmd.cwd = b.path(module);
run_cmd.step.dependOn(&install_cmd.step);

const run_step = b.step(name, name);
Expand Down

0 comments on commit 81ff879

Please sign in to comment.