os/mac/xcode: only use SDK for system headers on >= Mojave
This commit is contained in:
parent
1f29f70929
commit
26f185b76f
@ -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)
|
||||
|
||||
@ -200,7 +200,7 @@ module OS
|
||||
end
|
||||
|
||||
def separate_header_package?
|
||||
version >= "10"
|
||||
version >= "10" && MacOS.version >= "10.14"
|
||||
end
|
||||
|
||||
def provides_sdk?
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user