SDK: allow finding CLT SDK path where present

This commit is contained in:
Misty De Meo
2018-08-08 10:45:48 -07:00
parent e00720e872
commit 4f8a751579
2 changed files with 5 additions and 1 deletions
+1 -1
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"
+4
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?