From c31409baa9b6ecb837a2d4a7d01b3b0b7a0bcaa8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alex=20R=C3=B8nne=20Petersen?= Date: Sat, 22 Jun 2024 22:32:08 +0200 Subject: [PATCH] std.Target.Abi: Handle a few more GNU ABIs in isGnu(). Importantly, this ensures that the compiler understands that these ABIs need glibc. --- lib/std/Target.zig | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/lib/std/Target.zig b/lib/std/Target.zig index 29466ce837..a69038fae4 100644 --- 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, }; }