authorgravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2025-10-19 22:33:21+02:00
committergravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2025-10-22 17:28:19+02:00
log0e15b2ac108e82c005eb792b7f485f69165c1cc8
treeca7f940fa38e6c7a6b627e95f1d565a1d46c0ccc
parent362a44a122d51096d301a9aeba86c8c7dbf40ed6
signaturebadge-check Signed by SSH key SHA256:7B/LJ7bpR1eX8aCXSr4mtd5M45VMPKcx9zY8e95b5QM

std.Target: handle some more cases in toCoffMachine()


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

lib/std/Target.zig+9-9
...@@ -1106,36 +1106,36 @@ pub fn toCoffMachine(target: *const Target) std.coff.IMAGE.FILE.MACHINE {...@@ -1106,36 +1106,36 @@ pub fn toCoffMachine(target: *const Target) std.coff.IMAGE.FILE.MACHINE {
1106 .aarch64 => .ARM64,1106 .aarch64 => .ARM64,
1107 .loongarch32 => .LOONGARCH32,1107 .loongarch32 => .LOONGARCH32,
1108 .loongarch64 => .LOONGARCH64,1108 .loongarch64 => .LOONGARCH64,
1109 .mips => .R3000BE,
1110 .mipsel => .R3000,
1111 .mips64el => .R4000,
1112 .powerpcle => .POWERPC,
1109 .riscv32 => .RISCV32,1113 .riscv32 => .RISCV32,
1110 .riscv64 => .RISCV64,1114 .riscv64 => .RISCV64,
1111 .x86 => .I386,1115 .x86 => .I386,
1112 .x86_64 => .AMD64,1116 .x86_64 => .AMD64,
11131117
1118 .aarch64_be,
1114 .amdgcn,1119 .amdgcn,
1115 .arc,1120 .arc,
1116 .armeb,1121 .armeb,
1117 .thumbeb,
1118 .aarch64_be,
1119 .avr,1122 .avr,
1120 .bpfel,
1121 .bpfeb,1123 .bpfeb,
1124 .bpfel,
1122 .csky,1125 .csky,
1123 .hexagon,1126 .hexagon,
1124 .kalimba,1127 .kalimba,
1125 .lanai,1128 .lanai,
1126 .m68k,1129 .m68k,
1127 .mips,
1128 .mipsel,
1129 .mips64,1130 .mips64,
1130 .mips64el,
1131 .msp430,1131 .msp430,
1132 .or1k,
1133 .nvptx,1132 .nvptx,
1134 .nvptx64,1133 .nvptx64,
1134 .or1k,
1135 .powerpc,1135 .powerpc,
1136 .powerpcle,
1137 .powerpc64,1136 .powerpc64,
1138 .powerpc64le,1137 .powerpc64le,
1138 .propeller,
1139 .riscv32be,1139 .riscv32be,
1140 .riscv64be,1140 .riscv64be,
1141 .s390x,1141 .s390x,
...@@ -1143,12 +1143,12 @@ pub fn toCoffMachine(target: *const Target) std.coff.IMAGE.FILE.MACHINE {...@@ -1143,12 +1143,12 @@ pub fn toCoffMachine(target: *const Target) std.coff.IMAGE.FILE.MACHINE {
1143 .sparc64,1143 .sparc64,
1144 .spirv32,1144 .spirv32,
1145 .spirv64,1145 .spirv64,
1146 .thumbeb,
1146 .ve,1147 .ve,
1147 .wasm32,1148 .wasm32,
1148 .wasm64,1149 .wasm64,
1149 .xcore,1150 .xcore,
1150 .xtensa,1151 .xtensa,
1151 .propeller,
1152 => .UNKNOWN,1152 => .UNKNOWN,
1153 };1153 };
1154}1154}