diff options
| author | Mike Will <[email protected]> | 2024-06-16 03:38:54 -0400 |
|---|---|---|
| committer | GitHub <[email protected]> | 2024-06-16 09:38:54 +0200 |
| commit | 81ff879b047186e1453cb682c70782c0bd338f2a (patch) | |
| tree | d3168c12af55e6aac26e15a695272cf528089c18 /examples | |
| parent | eff7b065eba17725ddc3c16aef16eb8eeca1d888 (diff) | |
| download | raylib-81ff879b047186e1453cb682c70782c0bd338f2a.tar.gz raylib-81ff879b047186e1453cb682c70782c0bd338f2a.zip | |
zig: run examples from their directories (#4063)
So that they can find their respective resource folders.
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/build.zig | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/examples/build.zig b/examples/build.zig index 5a17382c..df0cdf8c 100644 --- a/examples/build.zig +++ b/examples/build.zig @@ -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); |
