| ... | @@ -4,6 +4,11 @@ pub fn build(b: *std.Build) void { | ... | @@ -4,6 +4,11 @@ pub fn build(b: *std.Build) void { |
| 4 | const test_step = b.step("test", "Test it"); | 4 | const test_step = b.step("test", "Test it"); |
| 5 | b.default_step = test_step; | 5 | b.default_step = test_step; |
| 6 | | 6 | |
| | 7 | if (@import("builtin").os.tag == .windows) { |
| | 8 | // https://github.com/ziglang/zig/issues/14800 |
| | 9 | return; |
| | 10 | } |
| | 11 | |
| 7 | add(b, test_step, .Debug); | 12 | add(b, test_step, .Debug); |
| 8 | add(b, test_step, .ReleaseFast); | 13 | add(b, test_step, .ReleaseFast); |
| 9 | add(b, test_step, .ReleaseSmall); | 14 | add(b, test_step, .ReleaseSmall); |
| ... | @@ -18,7 +23,6 @@ fn add(b: *std.Build, test_step: *std.Build.Step, optimize: std.builtin.Optimize | ... | @@ -18,7 +23,6 @@ fn add(b: *std.Build, test_step: *std.Build.Step, optimize: std.builtin.Optimize |
| 18 | }); | 23 | }); |
| 19 | exe.addCSourceFile("test.c", &[_][]const u8{"-std=c11"}); | 24 | exe.addCSourceFile("test.c", &[_][]const u8{"-std=c11"}); |
| 20 | exe.linkLibC(); | 25 | exe.linkLibC(); |
| 21 | b.default_step.dependOn(&exe.step); | | |
| 22 | | 26 | |
| 23 | const run_cmd = b.addRunArtifact(exe); | 27 | const run_cmd = b.addRunArtifact(exe); |
| 24 | run_cmd.skip_foreign_checks = true; | 28 | run_cmd.skip_foreign_checks = true; |