authorgravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2024-06-22 22:32:08+02:00
committergravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2024-07-29 09:50:09+02:00
logc31409baa9b6ecb837a2d4a7d01b3b0b7a0bcaa8
tree27da89a51abfe27240226d788175e5c7eb287538
parent6ec7757914540b7f64fa5c8a2ea3cc241a1a05d0
signaturebadge-check Signed by SSH key SHA256:7B/LJ7bpR1eX8aCXSr4mtd5M45VMPKcx9zY8e95b5QM

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

Importantly, this ensures that the compiler understands that these ABIs need glibc.

1 files changed, 10 insertions(+), 1 deletions(-)

lib/std/Target.zig+10-1
......@@ -720,7 +720,16 @@ pub const Abi = enum {
720720
721721 pub inline fn isGnu(abi: Abi) bool {
722722 return switch (abi) {
723 .gnu, .gnuabin32, .gnuabi64, .gnueabi, .gnueabihf, .gnux32 => true,
723 .gnu,
724 .gnuabin32,
725 .gnuabi64,
726 .gnueabi,
727 .gnueabihf,
728 .gnuf32,
729 .gnusf,
730 .gnux32,
731 .gnuilp32,
732 => true,
724733 else => false,
725734 };
726735 }