| ... | ... | @@ -2329,6 +2329,10 @@ fn supportedCompatArch(host: *const std.Target, arch: std.Target.Cpu.Arch) bool |
| 2329 | 2329 | // avoid reporting compatibility for 32-bit here since we'd just build a bunch of test binaries |
| 2330 | 2330 | // that never get run anyway. This added almost an hour's worth of useless work to aarch64-linux |
| 2331 | 2331 | // CI, for example. |
| 2332 | // |
| 2333 | // riscv64-linux and riscv64-netbsd similarly support 32-bit binaries. However, this requires a |
| 2334 | // very recent kernel and for the kernel feature to be enabled. Additionally, contemporary |
| 2335 | // RISC-V hardware is just too slow to justify building the 32-bit binaries. |
| 2332 | 2336 | return switch (host.os.tag) { |
| 2333 | 2337 | .illumos => switch (host.cpu.arch) { |
| 2334 | 2338 | .x86_64 => arch == .x86, |
| ... | ... | @@ -2338,13 +2342,11 @@ fn supportedCompatArch(host: *const std.Target, arch: std.Target.Cpu.Arch) bool |
| 2338 | 2342 | .mips64 => arch == .mips, |
| 2339 | 2343 | .mips64el => arch == .mipsel, |
| 2340 | 2344 | .powerpc64 => arch == .powerpc, |
| 2341 | | .riscv64 => arch == .riscv32, |
| 2342 | 2345 | .sparc64 => arch == .sparc, |
| 2343 | 2346 | .x86_64 => arch == .x86, |
| 2344 | 2347 | else => false, |
| 2345 | 2348 | }, |
| 2346 | 2349 | .netbsd => switch (host.cpu.arch) { |
| 2347 | | .riscv64 => arch == .riscv32, |
| 2348 | 2350 | .sparc64 => arch == .sparc, |
| 2349 | 2351 | .x86_64 => arch == .x86, |
| 2350 | 2352 | else => false, |