std.Target.Abi: Handle a few more GNU ABIs in isGnu().

Importantly, this ensures that the compiler understands that these ABIs need glibc.
This commit is contained in:
Alex Rønne Petersen 2024-06-22 22:32:08 +02:00
parent 6ec7757914
commit c31409baa9
No known key found for this signature in database

View File

@ -720,7 +720,16 @@ pub const Abi = enum {
pub inline fn isGnu(abi: Abi) bool {
return switch (abi) {
.gnu, .gnuabin32, .gnuabi64, .gnueabi, .gnueabihf, .gnux32 => true,
.gnu,
.gnuabin32,
.gnuabi64,
.gnueabi,
.gnueabihf,
.gnuf32,
.gnusf,
.gnux32,
.gnuilp32,
=> true,
else => false,
};
}