mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-06 05:44:20 +00:00
std.Target: Add isNetBSDLibC() function.
This commit is contained in:
parent
8a7d925d36
commit
6028db7f29
1 changed files with 7 additions and 0 deletions
|
|
@ -2072,6 +2072,13 @@ pub inline fn isFreeBSDLibC(target: Target) bool {
|
|||
};
|
||||
}
|
||||
|
||||
pub inline fn isNetBSDLibC(target: Target) bool {
|
||||
return switch (target.abi) {
|
||||
.none, .eabi, .eabihf => target.os.tag == .netbsd,
|
||||
else => false,
|
||||
};
|
||||
}
|
||||
|
||||
pub inline fn isWasiLibC(target: Target) bool {
|
||||
return target.os.tag == .wasi and target.abi.isMusl();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue