diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2023-03-14 20:24:46 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2023-03-15 10:48:15 -0700 |
| commit | 1a70ea0576ce9bbdfb02f4cbd8eb42efb099d71c (patch) | |
| tree | cf7b92e6e9ea44e04ed47e39e7e2a78dc7c047f4 /test | |
| parent | a1058dd27bd32fed2fba14732b8a6c7009fd1116 (diff) | |
| download | zig-1a70ea0576ce9bbdfb02f4cbd8eb42efb099d71c.tar.gz zig-1a70ea0576ce9bbdfb02f4cbd8eb42efb099d71c.zip | |
windows_spawn standalone test: test on native OS
In master branch this test tests native Windows. In this branch, I
accidentally made aarch64-windows test x86_64-windows which caused some
subtle behavior that we aren't ready to add test coverage for yet.
Diffstat (limited to 'test')
| -rw-r--r-- | test/standalone/windows_spawn/build.zig | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/test/standalone/windows_spawn/build.zig b/test/standalone/windows_spawn/build.zig index 8cc6e18599..6c865f0a9f 100644 --- a/test/standalone/windows_spawn/build.zig +++ b/test/standalone/windows_spawn/build.zig @@ -6,10 +6,9 @@ pub fn build(b: *std.Build) void { b.default_step = test_step; const optimize: std.builtin.OptimizeMode = .Debug; - const target: std.zig.CrossTarget = .{ - .os_tag = .windows, - .cpu_arch = .x86_64, - }; + const target: std.zig.CrossTarget = .{}; + + if (builtin.os.tag != .windows) return; const hello = b.addExecutable(.{ .name = "hello", |
