authorgravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2024-08-09 20:33:20+02:00
committergravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2024-08-15 10:55:46+02:00
log490b3281270b175d73bc146390e28ef6188e45a4
tree428c631cf29e52808c9560e54ca6d605ae4c22dc
parent6c27cab5b32d634b414b0c416ccc11a0d89e83ec
signaturebadge-check Signed by SSH key SHA256:7B/LJ7bpR1eX8aCXSr4mtd5M45VMPKcx9zY8e95b5QM

std.Target: Fix Arch.toElfMachine() for mips.

EM_MIPS_RS3_LE is obsolete; all mips targets just use EM_MIPS. Also, fun fact: EM_MIPS_RS3_LE is actually big endian!

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

lib/std/Target.zig+1-2
...@@ -1223,8 +1223,7 @@ pub const Cpu = struct {...@@ -1223,8 +1223,7 @@ pub const Cpu = struct {
1223 .lanai => .LANAI,1223 .lanai => .LANAI,
1224 .loongarch32, .loongarch64 => .LOONGARCH,1224 .loongarch32, .loongarch64 => .LOONGARCH,
1225 .m68k => .@"68K",1225 .m68k => .@"68K",
1226 .mips, .mips64 => .MIPS,1226 .mips, .mips64, .mipsel, .mips64el => .MIPS,
1227 .mipsel, .mips64el => .MIPS_RS3_LE,
1228 .msp430 => .MSP430,1227 .msp430 => .MSP430,
1229 .powerpc, .powerpcle => .PPC,1228 .powerpc, .powerpcle => .PPC,
1230 .powerpc64, .powerpc64le => .PPC64,1229 .powerpc64, .powerpc64le => .PPC64,