glibc: add support for csky architecture

This commit is contained in:
Andrew Kelley 2021-04-04 11:52:40 -07:00
parent 4bab90512d
commit b25476bf12
3 changed files with 14 additions and 0 deletions

View File

@ -1051,6 +1051,8 @@ static const AvailableLibC libcs_available[] = {
{ZigLLVM_arm, OsLinux, ZigLLVM_MuslEABI},
{ZigLLVM_arm, OsLinux, ZigLLVM_MuslEABIHF},
{ZigLLVM_arm, OsWindows, ZigLLVM_GNU},
{ZigLLVM_csky, OsLinux, ZigLLVM_GNUEABI},
{ZigLLVM_csky, OsLinux, ZigLLVM_GNUEABIHF},
{ZigLLVM_x86, OsLinux, ZigLLVM_GNU},
{ZigLLVM_x86, OsLinux, ZigLLVM_Musl},
{ZigLLVM_x86, OsWindows, ZigLLVM_GNU},

View File

@ -25,6 +25,8 @@ pub const available_libcs = [_]ArchOsAbi{
.{ .arch = .arm, .os = .linux, .abi = .musleabi },
.{ .arch = .arm, .os = .linux, .abi = .musleabihf },
.{ .arch = .arm, .os = .windows, .abi = .gnu },
.{ .arch = .csky, .os = .linux, .abi = .gnueabi },
.{ .arch = .csky, .os = .linux, .abi = .gnueabihf },
.{ .arch = .i386, .os = .linux, .abi = .gnu },
.{ .arch = .i386, .os = .linux, .abi = .musl },
.{ .arch = .i386, .os = .windows, .abi = .gnu },

View File

@ -84,6 +84,16 @@ const glibc_targets = [_]LibCTarget{
.arch = MultiArch{ .specific = Arch.arm },
.abi = MultiAbi{ .specific = Abi.gnueabihf },
},
LibCTarget{
.name = "csky-linux-gnuabiv2",
.arch = MultiArch{ .specific = Arch.csky },
.abi = MultiAbi{ .specific = Abi.gnueabihf },
},
LibCTarget{
.name = "csky-linux-gnuabiv2-soft",
.arch = MultiArch{ .specific = Arch.csky },
.abi = MultiAbi{ .specific = Abi.gnueabi },
},
LibCTarget{
.name = "i686-linux-gnu",
.arch = MultiArch{ .specific = Arch.i386 },