Source
pub fn muslArchName(arch: std.Target.Cpu.Arch, abi: std.Target.Abi) [:0]const u8 {
return switch (abi) {
.muslabin32 => "mipsn32",
.muslx32 => "x32",
else => switch (arch) {
.arm, .armeb, .thumb, .thumbeb => "arm",
.aarch64, .aarch64_be => "aarch64",
.loongarch64 => "loongarch64",
.m68k => "m68k",
.mips, .mipsel => "mips",
.mips64el, .mips64 => "mips64",
.powerpc => "powerpc",
.powerpc64, .powerpc64le => "powerpc64",
.riscv32 => "riscv32",
.riscv64 => "riscv64",
.s390x => "s390x",
.wasm32, .wasm64 => "wasm",
.x86 => "i386",
.x86_64 => "x86_64",
else => unreachable,
},
};
}