commit 490b3281270b175d73bc146390e28ef6188e45a4 (tree)
parent 6c27cab5b32d634b414b0c416ccc11a0d89e83ec
Author: Alex Rønne Petersen <alex@alexrp.com>
Date: Fri, 9 Aug 2024 20:33:20 +0200
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!
Diffstat:
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/lib/std/Target.zig b/lib/std/Target.zig
@@ -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,