We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 515e90e commit 188dd93Copy full SHA for 188dd93
build.zig
@@ -45,9 +45,10 @@ pub fn build(b: *std.Build) void {
45
46
b.installArtifact(exe);
47
48
- const is_windows = target.result.os.tag == .windows;
49
- if (!is_windows) {
50
- // Run step (disabled on Windows due to Zig run-step path assertions)
+ const builtin = @import("builtin");
+ const is_windows_host = builtin.os.tag == .windows;
+ if (!is_windows_host) {
51
+ // Run step (disabled on Windows hosts due to Zig run-step path assertions)
52
const run_step = b.step("run", "Run the app");
53
const run_cmd = b.addRunArtifact(exe);
54
run_step.dependOn(&run_cmd.step);
0 commit comments