Skip to content

Commit 188dd93

Browse files
committed
Skip run/test steps on Windows hosts
1 parent 515e90e commit 188dd93

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

build.zig

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,10 @@ pub fn build(b: *std.Build) void {
4545

4646
b.installArtifact(exe);
4747

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)
48+
const builtin = @import("builtin");
49+
const is_windows_host = builtin.os.tag == .windows;
50+
if (!is_windows_host) {
51+
// Run step (disabled on Windows hosts due to Zig run-step path assertions)
5152
const run_step = b.step("run", "Run the app");
5253
const run_cmd = b.addRunArtifact(exe);
5354
run_step.dependOn(&run_cmd.step);

0 commit comments

Comments
 (0)