build: fix the Windows-unsupported check (std.process.fatal)
CI / test (push) Successful in 3m22s

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
Daniel SamsonandClaude Sonnet 5.5 committed 2026-10-17 14:49:21 +01:00
1 parent f4e15aa32d
commit 0567e2ef8d
1 file changed
+1 -1
+1 -1
View File
@@ -7,7 +7,7 @@ pub fn build(b: *std.Build) void {
const target = b.standardTargetOptions(.{ const target = b.standardTargetOptions(.{
.default_target = if (builtin.os.tag == .linux) .{ .abi = .musl } else .{}, .default_target = if (builtin.os.tag == .linux) .{ .abi = .musl } else .{},
}); });
if (target.result.os.tag == .windows) b.fatal("zag does not support Windows (supported: Linux and macOS)", .{}); if (target.result.os.tag == .windows) std.process.fatal("zag does not support Windows (supported: Linux and macOS)", .{});
const optimize = b.standardOptimizeOption(.{}); const optimize = b.standardOptimizeOption(.{});
const strip = b.option(bool, "strip", "Strip debug symbols from the binary") orelse false; const strip = b.option(bool, "strip", "Strip debug symbols from the binary") orelse false;