Update master to build with Xcode 11 beta, macOS 10.15, iOS 13, tvOS 13, and watchOS 6 SDKs

This commit is contained in:
mishal_shah
2019-06-03 22:50:02 -07:00
parent 4b9771c21a
commit 1e38fc3030
56 changed files with 1004 additions and 388 deletions

View File

@@ -284,11 +284,24 @@ bool LangOptions::doesTargetSupportObjCMetadataUpdateCallback() const {
if (Target.isWatchOS())
return !Target.isOSVersionLT(5, 2);
// If we're running on a non-Apple platform, we still want to allow running
// tests that -enable-objc-interop.
// Don't assert if we're running on a non-Apple platform; we still
// want to allow running tests that -enable-objc-interop.
return false;
}
bool LangOptions::doesTargetSupportObjCGetClassHook() const {
return doesTargetSupportObjCMetadataUpdateCallback();
}
bool LangOptions::doesTargetSupportObjCClassStubs() const {
if (Target.isMacOSX())
return !Target.isMacOSXVersionLT(10, 15);
if (Target.isiOS()) // also returns true on tvOS
return !Target.isOSVersionLT(13);
if (Target.isWatchOS())
return !Target.isOSVersionLT(6);
// Don't assert if we're running on a non-Apple platform; we still
// want to allow running tests that -enable-objc-interop.
return false;
}