authorgravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2026-05-30 17:52:50+02:00
committergravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2026-05-31 07:55:13+02:00
logbb1b898147ddc9dba4232ea850f372b80d2ed8d8
tree99735449e28ad60c39aaa37b7bb8158796944dc9
parent0618743543464e0b5862255ebb89f265bd29c8b9

test: update list of compatible 32-bit architectures


1 files changed, 19 insertions(+), 7 deletions(-)

test/tests.zig+19-7
......@@ -2041,21 +2041,33 @@ const incremental_targets: []const []const u8 = &.{
20412041
20422042fn compatible32bitArch(host: *const std.Target) ?std.Target.Cpu.Arch {
20432043 return switch (host.os.tag) {
2044 .windows => switch (host.cpu.arch) {
2044 .freebsd => switch (host.cpu.arch) {
2045 .aarch64 => .arm,
2046 .powerpc64 => .powerpc,
2047 else => null,
2048 },
2049 .illumos => switch (host.cpu.arch) {
20452050 .x86_64 => .x86,
2046 .aarch64 => .thumb,
2047 .aarch64_be => .thumbeb,
20482051 else => null,
20492052 },
2050 .freebsd => switch (host.cpu.arch) {
2053 .linux => switch (host.cpu.arch) {
20512054 .aarch64 => .arm,
20522055 .aarch64_be => .armeb,
2056 .mips64 => .mips,
2057 .mips64el => .mipsel,
2058 .powerpc64 => .powerpc,
2059 .sparc64 => .sparc,
2060 .x86_64 => .x86,
20532061 else => null,
20542062 },
2055 .linux, .netbsd => switch (host.cpu.arch) {
2063 .netbsd => switch (host.cpu.arch) {
2064 .riscv64 => .riscv32,
2065 .sparc64 => .sparc,
2066 .x86_64 => .x86,
2067 else => null,
2068 },
2069 .windows => switch (host.cpu.arch) {
20562070 .x86_64 => .x86,
2057 .aarch64 => .arm,
2058 .aarch64_be => .armeb,
20592071 else => null,
20602072 },
20612073 else => null,