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