Commit 0e15b2ac10

Alex Rønne Petersen <alex@alexrp.com>
2025-10-19 22:33:21
std.Target: handle some more cases in toCoffMachine()
1 parent 362a44a
Changed files (1)
lib
lib/std/Target.zig
@@ -1106,36 +1106,36 @@ pub fn toCoffMachine(target: *const Target) std.coff.IMAGE.FILE.MACHINE {
         .aarch64 => .ARM64,
         .loongarch32 => .LOONGARCH32,
         .loongarch64 => .LOONGARCH64,
+        .mips => .R3000BE,
+        .mipsel => .R3000,
+        .mips64el => .R4000,
+        .powerpcle => .POWERPC,
         .riscv32 => .RISCV32,
         .riscv64 => .RISCV64,
         .x86 => .I386,
         .x86_64 => .AMD64,
 
+        .aarch64_be,
         .amdgcn,
         .arc,
         .armeb,
-        .thumbeb,
-        .aarch64_be,
         .avr,
-        .bpfel,
         .bpfeb,
+        .bpfel,
         .csky,
         .hexagon,
         .kalimba,
         .lanai,
         .m68k,
-        .mips,
-        .mipsel,
         .mips64,
-        .mips64el,
         .msp430,
-        .or1k,
         .nvptx,
         .nvptx64,
+        .or1k,
         .powerpc,
-        .powerpcle,
         .powerpc64,
         .powerpc64le,
+        .propeller,
         .riscv32be,
         .riscv64be,
         .s390x,
@@ -1143,12 +1143,12 @@ pub fn toCoffMachine(target: *const Target) std.coff.IMAGE.FILE.MACHINE {
         .sparc64,
         .spirv32,
         .spirv64,
+        .thumbeb,
         .ve,
         .wasm32,
         .wasm64,
         .xcore,
         .xtensa,
-        .propeller,
         => .UNKNOWN,
     };
 }