mirror of
https://codeberg.org/ziglang/zig.git
synced 2026-03-08 02:24:33 +01:00
std.Target: Don't match big endian architectures in Arch.toCoffMachine().
All of these were mapping to types that are little endian. In fact, I can find no evidence that either Windows or UEFI have ever been used on big endian systems.
This commit is contained in:
parent
8516a6ab57
commit
b24fc35eeb
1 changed files with 6 additions and 3 deletions
|
|
@ -1253,11 +1253,11 @@ pub const Cpu = struct {
|
|||
pub fn toCoffMachine(arch: Arch) std.coff.MachineType {
|
||||
return switch (arch) {
|
||||
.arm => .ARM,
|
||||
.thumb, .thumbeb => .Thumb,
|
||||
.aarch64, .aarch64_be => .ARM64,
|
||||
.thumb => .Thumb,
|
||||
.aarch64 => .ARM64,
|
||||
.loongarch32 => .LOONGARCH32,
|
||||
.loongarch64 => .LOONGARCH64,
|
||||
.powerpc, .powerpcle => .POWERPC,
|
||||
.powerpcle => .POWERPC,
|
||||
.riscv32 => .RISCV32,
|
||||
.riscv64 => .RISCV64,
|
||||
.x86 => .I386,
|
||||
|
|
@ -1266,6 +1266,8 @@ pub const Cpu = struct {
|
|||
.amdgcn,
|
||||
.arc,
|
||||
.armeb,
|
||||
.thumbeb,
|
||||
.aarch64_be,
|
||||
.avr,
|
||||
.bpfel,
|
||||
.bpfeb,
|
||||
|
|
@ -1282,6 +1284,7 @@ pub const Cpu = struct {
|
|||
.msp430,
|
||||
.nvptx,
|
||||
.nvptx64,
|
||||
.powerpc,
|
||||
.powerpc64,
|
||||
.powerpc64le,
|
||||
.s390x,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue