Merge pull request #72834 from artemcm/UpstreamVisionOS

Introduce visionOS Platform
This commit is contained in:
Artem Chikin
2024-04-15 09:33:49 -07:00
committed by GitHub
130 changed files with 1334 additions and 101 deletions

View File

@@ -856,6 +856,8 @@ getOSAndVersionForDiagnostics(const llvm::Triple &triple) {
osName = swift::prettyPlatformString(PlatformKind::tvOS);
} else if (triple.isiOS()) {
osName = swift::prettyPlatformString(PlatformKind::iOS);
} else if (triple.isXROS()) {
osName = swift::prettyPlatformString(PlatformKind::visionOS);
} else {
assert(!triple.isOSDarwin() && "unknown Apple OS");
// Fallback to the LLVM triple name. This isn't great (it won't be