Skip to content
Snippets Groups Projects
Commit 48bdd481 authored by Misty De Meo's avatar Misty De Meo
Browse files

MacOS.sdk: return newest SDK if requested not found

`MacOS.sdk` and `.sdk_path` will now return the newest installed SDK
instead of nil if called on a system that doesn’t have an SDK for the
currently-installed OS. For example, Xcode 7 on OS X 10.10 does not
include the 10.10 SDK, only the 10.11 SDK; software can be built by
specifying both SDKROOT and MACOSX_DEPLOYMENT_TARGET.
parent 3a1d7e72
No related branches found
No related tags found
No related merge requests found
......@@ -89,6 +89,9 @@ module OS
begin
@locator.sdk_for v
rescue SDKLocator::NoSDKError
sdk = @locator.latest_sdk
# don't return an SDK that's older than the OS version
sdk unless sdk.nil? || sdk.version < version
end
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment