mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Merge pull request #72834 from artemcm/UpstreamVisionOS
Introduce visionOS Platform
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user