commit c31409baa9b6ecb837a2d4a7d01b3b0b7a0bcaa8 (tree)
parent 6ec7757914540b7f64fa5c8a2ea3cc241a1a05d0
Author: Alex Rønne Petersen <alex@alexrp.com>
Date: Sat, 22 Jun 2024 22:32:08 +0200
std.Target.Abi: Handle a few more GNU ABIs in isGnu().
Importantly, this ensures that the compiler understands that these ABIs need glibc.
Diffstat:
1 file changed, 10 insertions(+), 1 deletion(-)
diff --git a/lib/std/Target.zig b/lib/std/Target.zig
@@ -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,
};
}