mirror of
https://github.com/ziglang/zig.git
synced 2025-12-06 14:23:09 +00:00
std.Target: Add isNetBSDLibC() function.
This commit is contained in:
parent
8a7d925d36
commit
6028db7f29
@ -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 {
|
pub inline fn isWasiLibC(target: Target) bool {
|
||||||
return target.os.tag == .wasi and target.abi.isMusl();
|
return target.os.tag == .wasi and target.abi.isMusl();
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user