Skip to content

Commit

Permalink
Merge pull request #699 from iacore/patch-1
Browse files Browse the repository at this point in the history
zig: allow 'zig build run'
  • Loading branch information
aduros authored Dec 11, 2024
2 parents 7623d60 + 1fc7d47 commit 5d31a08
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions cli/assets/templates/zig/build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,10 @@ pub fn build(b: *std.Build) !void {
exe.stack_size = 14752;

b.installArtifact(exe);

const run_exe = b.addSystemCommand(&.{ "w4", "run-native" });
run_exe.addArtifactArg(exe);

const step_run = b.step("run", "compile and run the cart");
step_run.dependOn(&run_exe.step);
}

0 comments on commit 5d31a08

Please sign in to comment.