commit 1a70ea0576ce9bbdfb02f4cbd8eb42efb099d71c (tree)
parent a1058dd27bd32fed2fba14732b8a6c7009fd1116
Author: Andrew Kelley <andrew@ziglang.org>
Date: Tue, 14 Mar 2023 20:24:46 -0700
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:
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git 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",