commit 94cf5b26f4fc764ca10bd7611c46156c29d254d7 (tree)
parent 497b502ce465189a96421be831c0cc0be6e8c2f9
Author: Alex Rønne Petersen <alex@alexrp.com>
Date: Wed, 16 Oct 2024 04:41:52 +0200
process_headers: Add muslabin32 and muslx32 support.
Diffstat:
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/lib/std/zig/target.zig b/lib/std/zig/target.zig
@@ -130,7 +130,7 @@ pub fn muslArchNameHeaders(arch: std.Target.Cpu.Arch) [:0]const u8 {
pub fn muslAbiNameHeaders(abi: std.Target.Abi) [:0]const u8 {
return switch (abi) {
- .muslabin32 => "mipsn32",
+ .muslabin32 => "muslabin32",
.muslx32 => "muslx32",
else => "musl",
};
diff --git a/tools/process_headers.zig b/tools/process_headers.zig
@@ -65,6 +65,7 @@ const musl_targets = [_]LibCTarget{
.{ .name = "m68k", .arch = .m68k, .abi = .musl },
.{ .name = "mips", .arch = .mips, .abi = .musl },
.{ .name = "mips64", .arch = .mips64, .abi = .musl },
+ .{ .name = "mipsn32", .arch = .mips64, .abi = .muslabin32 },
.{ .name = "powerpc", .arch = .powerpc, .abi = .musl },
.{ .name = "powerpc64", .arch = .powerpc64, .abi = .musl },
.{ .name = "riscv32", .arch = .riscv32, .abi = .musl },
@@ -72,6 +73,7 @@ const musl_targets = [_]LibCTarget{
.{ .name = "s390x", .arch = .s390x, .abi = .musl },
.{ .name = "i386", .arch = .x86, .abi = .musl },
.{ .name = "x86_64", .arch = .x86_64, .abi = .musl },
+ .{ .name = "x32", .arch = .x86_64, .abi = .muslx32 },
};
const DestTarget = struct {