Skip to content

Commit

Permalink
std.Target.Abi: Handle a few more GNU ABIs in isGnu().
Browse files Browse the repository at this point in the history
Importantly, this ensures that the compiler understands that these ABIs need glibc.
  • Loading branch information
alexrp committed Jun 23, 2024
1 parent 7d4f6cf commit 04af9d0
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion lib/std/Target.zig
Original file line number Diff line number Diff line change
Expand Up @@ -722,7 +722,17 @@ 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,
.gnuf64,
.gnusf,
.gnux32,
.gnuilp32,
=> true,
else => false,
};
}
Expand Down

0 comments on commit 04af9d0

Please sign in to comment.