Mac: add sdk_path_if_needed

This commit is contained in:
Misty De Meo 2018-07-24 09:32:55 -07:00
parent 32678276c7
commit 47ce9e04e3
No known key found for this signature in database
GPG Key ID: 76CF846A2F674B2C

View File

@ -110,6 +110,11 @@ module OS
s&.path s&.path
end 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: # See these issues for some history:
# https://github.com/Homebrew/legacy-homebrew/issues/13 # https://github.com/Homebrew/legacy-homebrew/issues/13
# https://github.com/Homebrew/legacy-homebrew/issues/41 # https://github.com/Homebrew/legacy-homebrew/issues/41