zig

fork of https://codeberg.org/ziglang/zig
Log | Files | Refs | README | LICENSE

commit bb1b898147ddc9dba4232ea850f372b80d2ed8d8 (tree)
parent 0618743543464e0b5862255ebb89f265bd29c8b9
Author: Alex Rønne Petersen <alex@alexrp.com>
Date:   Sat, 30 May 2026 17:52:50 +0200

test: update list of compatible 32-bit architectures

Diffstat:
Mtest/tests.zig | 26+++++++++++++++++++-------
1 file changed, 19 insertions(+), 7 deletions(-)

diff --git a/test/tests.zig b/test/tests.zig @@ -2041,21 +2041,33 @@ const incremental_targets: []const []const u8 = &.{ fn compatible32bitArch(host: *const std.Target) ?std.Target.Cpu.Arch { return switch (host.os.tag) { - .windows => switch (host.cpu.arch) { + .freebsd => switch (host.cpu.arch) { + .aarch64 => .arm, + .powerpc64 => .powerpc, + else => null, + }, + .illumos => switch (host.cpu.arch) { .x86_64 => .x86, - .aarch64 => .thumb, - .aarch64_be => .thumbeb, else => null, }, - .freebsd => switch (host.cpu.arch) { + .linux => switch (host.cpu.arch) { .aarch64 => .arm, .aarch64_be => .armeb, + .mips64 => .mips, + .mips64el => .mipsel, + .powerpc64 => .powerpc, + .sparc64 => .sparc, + .x86_64 => .x86, else => null, }, - .linux, .netbsd => switch (host.cpu.arch) { + .netbsd => switch (host.cpu.arch) { + .riscv64 => .riscv32, + .sparc64 => .sparc, + .x86_64 => .x86, + else => null, + }, + .windows => switch (host.cpu.arch) { .x86_64 => .x86, - .aarch64 => .arm, - .aarch64_be => .armeb, else => null, }, else => null,