From 26f185b76fd4dbfb9702246439af54adb11028d1 Mon Sep 17 00:00:00 2001 From: Bo Anderson Date: Sun, 8 Mar 2020 20:11:49 +0000 Subject: [PATCH] os/mac/xcode: only use SDK for system headers on >= Mojave --- Library/Homebrew/os/mac.rb | 2 +- Library/Homebrew/os/mac/xcode.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Library/Homebrew/os/mac.rb b/Library/Homebrew/os/mac.rb index 73dc51389b..6163d11f23 100644 --- a/Library/Homebrew/os/mac.rb +++ b/Library/Homebrew/os/mac.rb @@ -111,7 +111,7 @@ module OS # If there's no CLT SDK, return early return if MacOS::CLT.installed? && !MacOS::CLT.provides_sdk? - # If the CLT is installed and provides headers, return early + # If the CLT is installed and headers are provided by the system, return early return if MacOS::CLT.installed? && !MacOS::CLT.separate_header_package? sdk_path(v) diff --git a/Library/Homebrew/os/mac/xcode.rb b/Library/Homebrew/os/mac/xcode.rb index 2435a8f0dd..2a67e47d41 100644 --- a/Library/Homebrew/os/mac/xcode.rb +++ b/Library/Homebrew/os/mac/xcode.rb @@ -200,7 +200,7 @@ module OS end def separate_header_package? - version >= "10" + version >= "10" && MacOS.version >= "10.14" end def provides_sdk?