| ... | @@ -168,12 +168,14 @@ pub fn detectFromBuilding( | ... | @@ -168,12 +168,14 @@ pub fn detectFromBuilding( |
| 168 | | 168 | |
| 169 | const generic_name = libCGenericName(target); | 169 | const generic_name = libCGenericName(target); |
| 170 | // Some architecture families are handled by the same set of headers. | 170 | // Some architecture families are handled by the same set of headers. |
| 171 | const arch_name = if (target.abi.isMusl()) | 171 | const arch_name = if (target.isMuslLibC()) |
| 172 | std.zig.target.muslArchNameHeaders(target.cpu.arch) | 172 | std.zig.target.muslArchNameHeaders(target.cpu.arch) |
| | 173 | else if (target.isFreeBSDLibC()) |
| | 174 | std.zig.target.freebsdArchNameHeaders(target.cpu.arch) |
| 173 | else | 175 | else |
| 174 | @tagName(target.cpu.arch); | 176 | @tagName(target.cpu.arch); |
| 175 | const os_name = @tagName(target.os.tag); | 177 | const os_name = @tagName(target.os.tag); |
| 176 | const abi_name = if (target.abi.isMusl()) | 178 | const abi_name = if (target.isMuslLibC()) |
| 177 | std.zig.target.muslAbiNameHeaders(target.abi) | 179 | std.zig.target.muslAbiNameHeaders(target.abi) |
| 178 | else | 180 | else |
| 179 | @tagName(target.abi); | 181 | @tagName(target.abi); |
| ... | @@ -218,6 +220,7 @@ fn libCGenericName(target: std.Target) [:0]const u8 { | ... | @@ -218,6 +220,7 @@ fn libCGenericName(target: std.Target) [:0]const u8 { |
| 218 | switch (target.os.tag) { | 220 | switch (target.os.tag) { |
| 219 | .windows => return "mingw", | 221 | .windows => return "mingw", |
| 220 | .macos, .ios, .tvos, .watchos, .visionos => return "darwin", | 222 | .macos, .ios, .tvos, .watchos, .visionos => return "darwin", |
| | 223 | .freebsd => return "freebsd", |
| 221 | else => {}, | 224 | else => {}, |
| 222 | } | 225 | } |
| 223 | switch (target.abi) { | 226 | switch (target.abi) { |