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 {
2177
2177
return name == " ios" || name == " ios_app_extension" ;
2178
2178
2179
2179
case PlatformKind::macCatalyst:
2180
+ return name == " ios" || name == " maccatalyst" ;
2180
2181
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 " ;
2183
2184
2184
2185
case PlatformKind::tvOS:
2185
2186
return name == " tvos" ;
Original file line number Diff line number Diff line change @@ -9083,9 +9083,12 @@ void ClangImporter::Implementation::importAttributes(
9083
9083
llvm::StringSwitch<Optional<PlatformKind>>(Platform)
9084
9084
.Case (" ios" , PlatformKind::iOS)
9085
9085
.Case (" macos" , PlatformKind::macOS)
9086
+ .Case (" maccatalyst" , PlatformKind::macCatalyst)
9086
9087
.Case (" tvos" , PlatformKind::tvOS)
9087
9088
.Case (" watchos" , PlatformKind::watchOS)
9088
9089
.Case (" ios_app_extension" , PlatformKind::iOSApplicationExtension)
9090
+ .Case (" maccatalyst_app_extension" ,
9091
+ PlatformKind::macCatalystApplicationExtension)
9089
9092
.Case (" macos_app_extension" ,
9090
9093
PlatformKind::macOSApplicationExtension)
9091
9094
.Case (" tvos_app_extension" ,
You can’t perform that action at this time.
0 commit comments