authorgravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2026-10-09 09:25:30+02:00
committergravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2026-10-09 09:26:33+02:00
log40a0d70b8127e4e776b4198ca8d1de707ddb44d8
tree320a7b2119ed72a7a063e7635ab5f3bdd9757721
parentfbd733cf52b371073398a0d026e4cf3c2ee4fb35
signature Signed by SSH key SHA256:7B/LJ7bpR1eX8aCXSr4mtd5M45VMPKcx9zY8e95b5QM

test: don't claim compatibility for 32-bit ARM on AArch64


1 files changed, 5 insertions(+), 6 deletions(-)

test/tests.zig+5-6
...@@ -2324,18 +2324,17 @@ pub const debugger_matrix: []const RunnerTarget = &.{...@@ -2324,18 +2324,17 @@ pub const debugger_matrix: []const RunnerTarget = &.{
2324};2324};
23252325
2326fn supportedCompatArch(host: *const std.Target, arch: std.Target.Cpu.Arch) bool {2326fn supportedCompatArch(host: *const std.Target, arch: std.Target.Cpu.Arch) bool {
2327 // aarch64-freebsd and aarch64-linux can technically run 32-bit ARM binaries, but that depends
2328 // on AArch32 support in the CPU. Since modern AArch64 CPUs have largely dropped this support,
2329 // avoid reporting compatibility for 32-bit here since we'd just build a bunch of test binaries
2330 // that never get run anyway. This added almost an hour's worth of useless work to aarch64-linux
2331 // CI, for example.
2327 return switch (host.os.tag) {2332 return switch (host.os.tag) {
2328 .freebsd => switch (host.cpu.arch) {
2329 .aarch64 => arch == .arm,
2330 else => false,
2331 },
2332 .illumos => switch (host.cpu.arch) {2333 .illumos => switch (host.cpu.arch) {
2333 .x86_64 => arch == .x86,2334 .x86_64 => arch == .x86,
2334 else => false,2335 else => false,
2335 },2336 },
2336 .linux => switch (host.cpu.arch) {2337 .linux => switch (host.cpu.arch) {
2337 .aarch64 => arch == .arm or arch == .thumb,
2338 .aarch64_be => arch == .armeb or arch == .thumbeb,
2339 .mips64 => arch == .mips,2338 .mips64 => arch == .mips,
2340 .mips64el => arch == .mipsel,2339 .mips64el => arch == .mipsel,
2341 .powerpc64 => arch == .powerpc,2340 .powerpc64 => arch == .powerpc,