authorgravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2024-08-09 21:13:10+02:00
committergravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2024-08-15 10:55:46+02:00
log65affb1c225a034058fb2cbe32c289019b463ebf
tree2679ebc38cdd55c085996858765dd03b4ec131ef
parentb24fc35eeb417e660f4fed017d45c534bd794469
signaturebadge-check Signed by SSH key SHA256:7B/LJ7bpR1eX8aCXSr4mtd5M45VMPKcx9zY8e95b5QM

std.Target: Don't match PowerPC in Arch.toCoffMachine().

It's entirely unclear whether this should map to POWERPC or POWERPCFP, and as I can find no evidence of people producing PE files for PowerPC since Windows NT, let's just not make a likely-wrong guess. We can revisit this if the need ever actually arises.

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

lib/std/Target.zig+1-1
...@@ -1257,7 +1257,6 @@ pub const Cpu = struct {...@@ -1257,7 +1257,6 @@ pub const Cpu = struct {
1257 .aarch64 => .ARM64,1257 .aarch64 => .ARM64,
1258 .loongarch32 => .LOONGARCH32,1258 .loongarch32 => .LOONGARCH32,
1259 .loongarch64 => .LOONGARCH64,1259 .loongarch64 => .LOONGARCH64,
1260 .powerpcle => .POWERPC,
1261 .riscv32 => .RISCV32,1260 .riscv32 => .RISCV32,
1262 .riscv64 => .RISCV64,1261 .riscv64 => .RISCV64,
1263 .x86 => .I386,1262 .x86 => .I386,
...@@ -1285,6 +1284,7 @@ pub const Cpu = struct {...@@ -1285,6 +1284,7 @@ pub const Cpu = struct {
1285 .nvptx,1284 .nvptx,
1286 .nvptx64,1285 .nvptx64,
1287 .powerpc,1286 .powerpc,
1287 .powerpcle,
1288 .powerpc64,1288 .powerpc64,
1289 .powerpc64le,1289 .powerpc64le,
1290 .s390x,1290 .s390x,