Skip to content

Commit

Permalink
zig: allow 'zig build run'
Browse files Browse the repository at this point in the history
  • Loading branch information
iacore committed Mar 18, 2024
1 parent 5f1fabf commit 1fc7d47
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 1fc7d47

Please sign in to comment.