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 = &.{...@@ -2041,21 +2041,33 @@ const incremental_targets: []const []const u8 = &.{
20412041
2042fn compatible32bitArch(host: *const std.Target) ?std.Target.Cpu.Arch {2042fn compatible32bitArch(host: *const std.Target) ?std.Target.Cpu.Arch {
2043 return switch (host.os.tag) {2043 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) {
2045 .x86_64 => .x86,2050 .x86_64 => .x86,
2046 .aarch64 => .thumb,
2047 .aarch64_be => .thumbeb,
2048 else => null,2051 else => null,
2049 },2052 },
2050 .freebsd => switch (host.cpu.arch) {2053 .linux => switch (host.cpu.arch) {
2051 .aarch64 => .arm,2054 .aarch64 => .arm,
2052 .aarch64_be => .armeb,2055 .aarch64_be => .armeb,
2056 .mips64 => .mips,
2057 .mips64el => .mipsel,
2058 .powerpc64 => .powerpc,
2059 .sparc64 => .sparc,
2060 .x86_64 => .x86,
2053 else => null,2061 else => null,
2054 },2062 },
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) {
2056 .x86_64 => .x86,2070 .x86_64 => .x86,
2057 .aarch64 => .arm,
2058 .aarch64_be => .armeb,
2059 else => null,2071 else => null,
2060 },2072 },
2061 else => null,2073 else => null,