diff options
| author | Jakub Konka <kubkon@jakubkonka.com> | 2020-11-09 23:41:55 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-11-09 23:41:55 +0100 |
| commit | 0bc9fd5e8e6a45fd54c3c755bd022ce7f82d8e00 (patch) | |
| tree | 9f2ac0b61100de0c6da63ccaa98ee71e49a1afef /src/Compilation.zig | |
| parent | 83a1523b1a4da821a18e1ad4ee48210412d011cb (diff) | |
| parent | db2ac8ae493ef118bfcb15710ea0e268de500e73 (diff) | |
| download | zig-0bc9fd5e8e6a45fd54c3c755bd022ce7f82d8e00.tar.gz zig-0bc9fd5e8e6a45fd54c3c755bd022ce7f82d8e00.zip | |
Merge pull request #7035 from ziglang/macos-posix-headers
macOS libc headers: add POSIX headers
Diffstat (limited to 'src/Compilation.zig')
| -rw-r--r-- | src/Compilation.zig | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/Compilation.zig b/src/Compilation.zig index 36847f0437..65fa296ca4 100644 --- a/src/Compilation.zig +++ b/src/Compilation.zig @@ -2147,9 +2147,7 @@ fn detectLibCIncludeDirs( return detectLibCFromLibCInstallation(arena, target, lci); } - if (target_util.canBuildLibC(target)) outer: { - if (is_native_os and target.isDarwin()) break :outer; // If we're on Darwin, we want to use native since we only have headers. - + if (target_util.canBuildLibC(target)) { const generic_name = target_util.libCGenericName(target); // Some architectures are handled by the same set of headers. const arch_name = if (target.abi.isMusl()) target_util.archMuslName(target.cpu.arch) else @tagName(target.cpu.arch); |
