Skip to content

Commit

Permalink
Update artifact build
Browse files Browse the repository at this point in the history
  • Loading branch information
kassane committed May 6, 2023
1 parent 29e5d42 commit 25ec886
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ pub fn build(b: *std.build.Builder) void {
.optimize = optimize,
.root_source_file = .{ .path = "src/main.zig" },
});
exe.install();
b.installArtifact(exe);

const run_cmd = exe.run();
const run_cmd = b.addRunArtifact(exe);
run_cmd.step.dependOn(b.getInstallStep());
if (b.args) |args| {
run_cmd.addArgs(args);
Expand Down

0 comments on commit 25ec886

Please sign in to comment.