[TextAPI] add osx to possible string to platform input

This commit is contained in:
Cyndy Ishida 2023-06-14 16:24:42 -07:00
parent c731bdd6ca
commit e63e536044

View File

@ -90,6 +90,7 @@ StringRef getPlatformName(PlatformType Platform) {
PlatformType getPlatformFromName(StringRef Name) {
return StringSwitch<PlatformType>(Name)
.Case("osx", PLATFORM_MACOS)
.Case("macos", PLATFORM_MACOS)
.Case("ios", PLATFORM_IOS)
.Case("tvos", PLATFORM_TVOS)