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!
This commit is contained in:
Alex Rønne Petersen 2024-08-09 20:33:20 +02:00
parent 6c27cab5b3
commit 490b328127
No known key found for this signature in database

View file

@ -1223,8 +1223,7 @@ pub const Cpu = struct {
.lanai => .LANAI,
.loongarch32, .loongarch64 => .LOONGARCH,
.m68k => .@"68K",
.mips, .mips64 => .MIPS,
.mipsel, .mips64el => .MIPS_RS3_LE,
.mips, .mips64, .mipsel, .mips64el => .MIPS,
.msp430 => .MSP430,
.powerpc, .powerpcle => .PPC,
.powerpc64, .powerpc64le => .PPC64,