Skip to content

Commit 42bf2b1

Browse files
committed
std.Target.Abi: Handle a few more GNU ABIs in isGnu().
1 parent 23a2d12 commit 42bf2b1

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

lib/std/Target.zig

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -722,7 +722,17 @@ pub const Abi = enum {
722722

723723
pub inline fn isGnu(abi: Abi) bool {
724724
return switch (abi) {
725-
.gnu, .gnuabin32, .gnuabi64, .gnueabi, .gnueabihf, .gnux32 => true,
725+
.gnu,
726+
.gnuabin32,
727+
.gnuabi64,
728+
.gnueabi,
729+
.gnueabihf,
730+
.gnuf32,
731+
.gnuf64,
732+
.gnusf,
733+
.gnux32,
734+
.gnuilp32,
735+
=> true,
726736
else => false,
727737
};
728738
}

0 commit comments

Comments
 (0)