mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-06 13:54:21 +00:00
std.Target: add isOpenBSDLibC()
This commit is contained in:
parent
5f77dde83a
commit
9e3c240fda
1 changed files with 7 additions and 0 deletions
|
|
@ -2141,6 +2141,13 @@ pub inline fn isNetBSDLibC(target: *const Target) bool {
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pub inline fn isOpenBSDLibC(target: *const Target) bool {
|
||||||
|
return switch (target.abi) {
|
||||||
|
.none, .eabi, .eabihf => target.os.tag == .openbsd,
|
||||||
|
else => false,
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
pub inline fn isWasiLibC(target: *const Target) bool {
|
pub inline fn isWasiLibC(target: *const Target) bool {
|
||||||
return target.os.tag == .wasi and target.abi.isMusl();
|
return target.os.tag == .wasi and target.abi.isMusl();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue