| ... | @@ -2140,6 +2140,13 @@ pub inline fn isNetBSDLibC(target: *const Target) bool { | ... | @@ -2140,6 +2140,13 @@ pub inline fn isNetBSDLibC(target: *const Target) bool { |
| 2140 | }; | 2140 | }; |
| 2141 | } | 2141 | } |
| 2142 | | 2142 | |
| | 2143 | pub inline fn isOpenBSDLibC(target: *const Target) bool { |
| | 2144 | return switch (target.abi) { |
| | 2145 | .none, .eabi, .eabihf => target.os.tag == .openbsd, |
| | 2146 | else => false, |
| | 2147 | }; |
| | 2148 | } |
| | 2149 | |
| 2143 | pub inline fn isWasiLibC(target: *const Target) bool { | 2150 | pub inline fn isWasiLibC(target: *const Target) bool { |
| 2144 | return target.os.tag == .wasi and target.abi.isMusl(); | 2151 | return target.os.tag == .wasi and target.abi.isMusl(); |
| 2145 | } | 2152 | } |