From 47ce9e04e34b94d214295de540a4f2781b334d66 Mon Sep 17 00:00:00 2001 From: Misty De Meo Date: Tue, 24 Jul 2018 09:32:55 -0700 Subject: [PATCH] Mac: add sdk_path_if_needed --- Library/Homebrew/os/mac.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Library/Homebrew/os/mac.rb b/Library/Homebrew/os/mac.rb index e3eb34a846..09b34ad87d 100644 --- a/Library/Homebrew/os/mac.rb +++ b/Library/Homebrew/os/mac.rb @@ -110,6 +110,11 @@ module OS s&.path end + def sdk_path_if_needed(v = nil) + return if !MacOS::Xcode.installed? && MacOS::CLT.separate_header_package? + sdk_path(v) + end + # See these issues for some history: # https://github.com/Homebrew/legacy-homebrew/issues/13 # https://github.com/Homebrew/legacy-homebrew/issues/41