SDK: allow finding CLT SDK path where present

This commit is contained in:
Misty De Meo 2018-07-26 17:56:47 -07:00
parent e00720e872
commit 4f8a751579
No known key found for this signature in database
GPG Key ID: 76CF846A2F674B2C
2 changed files with 5 additions and 1 deletions

View File

@ -82,7 +82,7 @@ module OS
# return nil SDKs for Xcode 9 and older.
def sdk_prefix
@sdk_prefix ||= begin
if !CLT.separate_header_package?
if !CLT.provides_sdk?
""
else
"#{CLT::PKG_PATH}/SDKs"

View File

@ -214,6 +214,10 @@ module OS
version >= "10"
end
def provides_sdk?
version >= "8"
end
def headers_installed?
if !separate_header_package?
installed?