| ... | ... | @@ -2356,6 +2356,10 @@ fn supportedCompatArch(host: *const std.Target, arch: std.Target.Cpu.Arch) bool |
| 2356 | 2356 | // avoid reporting compatibility for 32-bit here since we'd just build a bunch of test binaries |
| 2357 | 2357 | // that never get run anyway. This added almost an hour's worth of useless work to aarch64-linux |
| 2358 | 2358 | // CI, for example. |
| 2359 | // |
| 2360 | // riscv64-linux and riscv64-netbsd similarly support 32-bit binaries. However, this requires a |
| 2361 | // very recent kernel and for the kernel feature to be enabled. Additionally, contemporary |
| 2362 | // RISC-V hardware is just too slow to justify building the 32-bit binaries. |
| 2359 | 2363 | return switch (host.os.tag) { |
| 2360 | 2364 | .illumos => switch (host.cpu.arch) { |
| 2361 | 2365 | .x86_64 => arch == .x86, |
| ... | ... | @@ -2365,13 +2369,11 @@ fn supportedCompatArch(host: *const std.Target, arch: std.Target.Cpu.Arch) bool |
| 2365 | 2369 | .mips64 => arch == .mips, |
| 2366 | 2370 | .mips64el => arch == .mipsel, |
| 2367 | 2371 | .powerpc64 => arch == .powerpc, |
| 2368 | | .riscv64 => arch == .riscv32, |
| 2369 | 2372 | .sparc64 => arch == .sparc, |
| 2370 | 2373 | .x86_64 => arch == .x86, |
| 2371 | 2374 | else => false, |
| 2372 | 2375 | }, |
| 2373 | 2376 | .netbsd => switch (host.cpu.arch) { |
| 2374 | | .riscv64 => arch == .riscv32, |
| 2375 | 2377 | .sparc64 => arch == .sparc, |
| 2376 | 2378 | .x86_64 => arch == .x86, |
| 2377 | 2379 | else => false, |