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:46:20+02:00
log7eae7feea45c4def744f631e7c435fcff6c61cf5
tree78982cc461dd0cb7a2e542f647f5225cf4b1af60
parentdb2b02c80988543ac80404bce77ec3c506e3aad2
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
...@@ -2351,18 +2351,17 @@ pub const debugger_matrix: []const RunnerTarget = &.{...@@ -2351,18 +2351,17 @@ pub const debugger_matrix: []const RunnerTarget = &.{
2351};2351};
23522352
2353fn supportedCompatArch(host: *const std.Target, arch: std.Target.Cpu.Arch) bool {2353fn supportedCompatArch(host: *const std.Target, arch: std.Target.Cpu.Arch) bool {
2354 // aarch64-freebsd and aarch64-linux can technically run 32-bit ARM binaries, but that depends
2355 // on AArch32 support in the CPU. Since modern AArch64 CPUs have largely dropped this support,
2356 // avoid reporting compatibility for 32-bit here since we'd just build a bunch of test binaries
2357 // that never get run anyway. This added almost an hour's worth of useless work to aarch64-linux
2358 // CI, for example.
2354 return switch (host.os.tag) {2359 return switch (host.os.tag) {
2355 .freebsd => switch (host.cpu.arch) {
2356 .aarch64 => arch == .arm,
2357 else => false,
2358 },
2359 .illumos => switch (host.cpu.arch) {2360 .illumos => switch (host.cpu.arch) {
2360 .x86_64 => arch == .x86,2361 .x86_64 => arch == .x86,
2361 else => false,2362 else => false,
2362 },2363 },
2363 .linux => switch (host.cpu.arch) {2364 .linux => switch (host.cpu.arch) {
2364 .aarch64 => arch == .arm or arch == .thumb,
2365 .aarch64_be => arch == .armeb or arch == .thumbeb,
2366 .mips64 => arch == .mips,2365 .mips64 => arch == .mips,
2367 .mips64el => arch == .mipsel,2366 .mips64el => arch == .mipsel,
2368 .powerpc64 => arch == .powerpc,2367 .powerpc64 => arch == .powerpc,