| ... | @@ -2041,21 +2041,33 @@ const incremental_targets: []const []const u8 = &.{ | ... | @@ -2041,21 +2041,33 @@ const incremental_targets: []const []const u8 = &.{ |
| 2041 | | 2041 | |
| 2042 | fn compatible32bitArch(host: *const std.Target) ?std.Target.Cpu.Arch { | 2042 | fn 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, |