File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -2177,9 +2177,10 @@ bool PlatformAvailability::isPlatformRelevant(StringRef name) const {
21772177 return name == " ios" || name == " ios_app_extension" ;
21782178
21792179 case PlatformKind::macCatalyst:
2180+ return name == " ios" || name == " maccatalyst" ;
21802181 case PlatformKind::macCatalystApplicationExtension:
2181- // ClangImporter does not yet support macCatalyst.
2182- return false ;
2182+ return name == " ios " || name == " ios_app_extension " ||
2183+ name == " maccatalyst " || name == " maccatalyst_app_extension " ;
21832184
21842185 case PlatformKind::tvOS:
21852186 return name == " tvos" ;
Original file line number Diff line number Diff line change @@ -9083,9 +9083,12 @@ void ClangImporter::Implementation::importAttributes(
90839083 llvm::StringSwitch<Optional<PlatformKind>>(Platform)
90849084 .Case (" ios" , PlatformKind::iOS)
90859085 .Case (" macos" , PlatformKind::macOS)
9086+ .Case (" maccatalyst" , PlatformKind::macCatalyst)
90869087 .Case (" tvos" , PlatformKind::tvOS)
90879088 .Case (" watchos" , PlatformKind::watchOS)
90889089 .Case (" ios_app_extension" , PlatformKind::iOSApplicationExtension)
9090+ .Case (" maccatalyst_app_extension" ,
9091+ PlatformKind::macCatalystApplicationExtension)
90899092 .Case (" macos_app_extension" ,
90909093 PlatformKind::macOSApplicationExtension)
90919094 .Case (" tvos_app_extension" ,
You can’t perform that action at this time.
0 commit comments