authorgravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2024-10-16 04:41:52+02:00
committergravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2024-11-02 10:42:53+01:00
log94cf5b26f4fc764ca10bd7611c46156c29d254d7
treee8929af4095f7faaf85ebcacc5a1be57afa846aa
parent497b502ce465189a96421be831c0cc0be6e8c2f9
signature Signed by SSH key SHA256:7B/LJ7bpR1eX8aCXSr4mtd5M45VMPKcx9zY8e95b5QM

process_headers: Add muslabin32 and muslx32 support.


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

lib/std/zig/target.zig+1-1
......@@ -130,7 +130,7 @@ pub fn muslArchNameHeaders(arch: std.Target.Cpu.Arch) [:0]const u8 {
130130
131131pub fn muslAbiNameHeaders(abi: std.Target.Abi) [:0]const u8 {
132132 return switch (abi) {
133 .muslabin32 => "mipsn32",
133 .muslabin32 => "muslabin32",
134134 .muslx32 => "muslx32",
135135 else => "musl",
136136 };
tools/process_headers.zig+2
......@@ -65,6 +65,7 @@ const musl_targets = [_]LibCTarget{
6565 .{ .name = "m68k", .arch = .m68k, .abi = .musl },
6666 .{ .name = "mips", .arch = .mips, .abi = .musl },
6767 .{ .name = "mips64", .arch = .mips64, .abi = .musl },
68 .{ .name = "mipsn32", .arch = .mips64, .abi = .muslabin32 },
6869 .{ .name = "powerpc", .arch = .powerpc, .abi = .musl },
6970 .{ .name = "powerpc64", .arch = .powerpc64, .abi = .musl },
7071 .{ .name = "riscv32", .arch = .riscv32, .abi = .musl },
......@@ -72,6 +73,7 @@ const musl_targets = [_]LibCTarget{
7273 .{ .name = "s390x", .arch = .s390x, .abi = .musl },
7374 .{ .name = "i386", .arch = .x86, .abi = .musl },
7475 .{ .name = "x86_64", .arch = .x86_64, .abi = .musl },
76 .{ .name = "x32", .arch = .x86_64, .abi = .muslx32 },
7577};
7678
7779const DestTarget = struct {