chore(build): update to latest zig changes

This commit is contained in:
2023-04-13 22:14:31 -05:00
parent 3c619df3dc
commit df005d7fb6
3 changed files with 4 additions and 4 deletions

View File

@@ -65,9 +65,9 @@ pub fn build(b: *std.Build) void {
const zgui_pkg = zgui.package(b, target, optimize, .{ .options = .{ .backend = .sdl2_opengl3, .shared = true } });
zgui_pkg.link(exe);
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);