Skip to content

Commit

Permalink
cc: fix regression on macOS after adding libc headers
Browse files Browse the repository at this point in the history
Signed-off-by: Jakub Konka <kubkon@jakubkonka.com>
  • Loading branch information
kubkon committed Oct 24, 2020
1 parent 91a1c20 commit 872bc78
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Compilation.zig
Original file line number Diff line number Diff line change
Expand Up @@ -2127,7 +2127,9 @@ fn detectLibCIncludeDirs(
return detectLibCFromLibCInstallation(arena, target, lci);
}

if (target_util.canBuildLibC(target)) {
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.

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);
Expand Down

0 comments on commit 872bc78

Please sign in to comment.