Commit 1a70ea0576

Andrew Kelley <andrew@ziglang.org>
2023-03-15 04:24:46
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.
1 parent a1058dd
Changed files (1)
test
standalone
windows_spawn
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",