| ... | ... | @@ -4,6 +4,11 @@ pub fn build(b: *std.Build) void { |
| 4 | 4 | const test_step = b.step("test", "Test it"); |
| 5 | 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 | 12 | add(b, test_step, .Debug); |
| 8 | 13 | add(b, test_step, .ReleaseFast); |
| 9 | 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 | 23 | }); |
| 19 | 24 | exe.addCSourceFile("test.c", &[_][]const u8{"-std=c11"}); |
| 20 | 25 | exe.linkLibC(); |
| 21 | | b.default_step.dependOn(&exe.step); |
| 22 | 26 | |
| 23 | 27 | const run_cmd = b.addRunArtifact(exe); |
| 24 | 28 | run_cmd.skip_foreign_checks = true; |