Skip to content

Commit 27e5f0f

Browse files
committed
Add handling for FreeBSD and NetBSD.
1 parent 5edfb8a commit 27e5f0f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

zigup.zig

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ const fixdeletetree = @import("fixdeletetree.zig");
1010
const arch = switch (builtin.cpu.arch) {
1111
.aarch64 => "aarch64",
1212
.arm => "armv7a",
13+
.powerpc64 => "powerpc64",
1314
.powerpc64le => "powerpc64le",
1415
.riscv64 => "riscv64",
1516
.s390x => "s390x",
@@ -18,8 +19,10 @@ const arch = switch (builtin.cpu.arch) {
1819
else => @compileError("Unsupported CPU Architecture"),
1920
};
2021
const os = switch (builtin.os.tag) {
22+
.freebsd => "freebsd",
2123
.linux => "linux",
2224
.macos => "macos",
25+
.netbsd => "netbsd",
2326
.windows => "windows",
2427
else => @compileError("Unsupported OS"),
2528
};

0 commit comments

Comments
 (0)