process_headers: Add muslabin32 and muslx32 support.

This commit is contained in:
Alex Rønne Petersen 2024-10-16 04:41:52 +02:00
parent 497b502ce4
commit 94cf5b26f4
No known key found for this signature in database
2 changed files with 3 additions and 1 deletions

View File

@ -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",
};

View File

@ -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 {