mirror of
https://codeberg.org/ziglang/zig.git
synced 2026-03-08 02:24:33 +01:00
std.Target: Add isFreeBSDLibC() function.
This commit is contained in:
parent
46042170cb
commit
309ff9c34e
1 changed files with 7 additions and 0 deletions
|
|
@ -2068,6 +2068,13 @@ pub inline fn isDarwinLibC(target: Target) bool {
|
|||
};
|
||||
}
|
||||
|
||||
pub inline fn isFreeBSDLibC(target: Target) bool {
|
||||
return switch (target.abi) {
|
||||
.none, .eabihf => target.os.tag == .freebsd,
|
||||
else => false,
|
||||
};
|
||||
}
|
||||
|
||||
pub inline fn isWasiLibC(target: Target) bool {
|
||||
return target.os.tag == .wasi and target.abi.isMusl();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue