glibc: add riscv32 and loongarch64

This commit is contained in:
Andrew Kelley 2024-06-05 17:26:04 -07:00
parent 16d65358e9
commit c09f5f3795
2 changed files with 12 additions and 0 deletions

View File

@ -35,6 +35,7 @@ pub const available_libcs = [_]ArchOsAbi{
.{ .arch = .x86, .os = .linux, .abi = .gnu },
.{ .arch = .x86, .os = .linux, .abi = .musl },
.{ .arch = .x86, .os = .windows, .abi = .gnu },
.{ .arch = .loongarch64, .os = .linux, .abi = .gnu },
.{ .arch = .loongarch64, .os = .linux, .abi = .musl },
.{ .arch = .m68k, .os = .linux, .abi = .gnu },
.{ .arch = .m68k, .os = .linux, .abi = .musl },
@ -57,6 +58,7 @@ pub const available_libcs = [_]ArchOsAbi{
.{ .arch = .powerpc, .os = .linux, .abi = .gnueabi },
.{ .arch = .powerpc, .os = .linux, .abi = .gnueabihf },
.{ .arch = .powerpc, .os = .linux, .abi = .musl },
.{ .arch = .riscv32, .os = .linux, .abi = .gnuilp32 },
.{ .arch = .riscv32, .os = .linux, .abi = .musl },
.{ .arch = .riscv64, .os = .linux, .abi = .gnu, .glibc_min = .{ .major = 2, .minor = 27, .patch = 0 } },
.{ .arch = .riscv64, .os = .linux, .abi = .musl },

View File

@ -159,6 +159,11 @@ const glibc_targets = [_]LibCTarget{
.arch = MultiArch{ .specific = Arch.powerpc },
.abi = MultiAbi{ .specific = Abi.gnueabi },
},
LibCTarget{
.name = "riscv32-linux-gnu-rv32imac-ilp32",
.arch = MultiArch{ .specific = Arch.riscv32 },
.abi = MultiAbi{ .specific = Abi.gnuilp32 },
},
LibCTarget{
.name = "riscv64-linux-gnu-rv64imac-lp64",
.arch = MultiArch{ .specific = Arch.riscv64 },
@ -195,6 +200,11 @@ const glibc_targets = [_]LibCTarget{
.arch = MultiArch{ .specific = Arch.m68k },
.abi = MultiAbi{ .specific = Abi.gnu },
},
LibCTarget{
.name = "loongarch64-linux-gnu-lp64d",
.arch = MultiArch{ .specific = .loongarch64 },
.abi = MultiAbi{ .specific = Abi.gnu },
},
};
const musl_targets = [_]LibCTarget{