From 4d67c3d8878b99fc7b5912dafc50c9a5c01ba169 Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Sun, 8 Nov 2020 17:50:19 -0700 Subject: macOS: depend on bundled headers even for native This is an alternate fix for #6773. Reverts 872bc787b56f71e53c80f4681523bc8356915b71. --- src/Compilation.zig | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/Compilation.zig') 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); -- cgit v1.2.3