Skip to content

Commit 9f5ad96

Browse files
committed
NFC: use visionOS instead of xrOS in the Swift codebase. We can't do
much about the LLVM triple, but we can do our best on the Swift side.
1 parent d60d341 commit 9f5ad96

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

include/swift/AST/RuntimeVersions.def

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ RUNTIME_VERSION(
135135
PLATFORM(macOS, (14, 4, 0))
136136
PLATFORM(iOS, (17, 4, 0))
137137
PLATFORM(watchOS, (10, 4, 0))
138-
PLATFORM(xrOS, (1, 0, 0))
138+
PLATFORM(visionOS,(1, 0, 0))
139139
)
140140

141141
END_MAJOR_VERSION(5)
@@ -147,7 +147,7 @@ RUNTIME_VERSION(
147147
PLATFORM(macOS, (15, 0, 0))
148148
PLATFORM(iOS, (18, 0, 0))
149149
PLATFORM(watchOS, (11, 0, 0))
150-
PLATFORM(xrOS, (2, 0, 0))
150+
PLATFORM(visionOS,(2, 0, 0))
151151
)
152152

153153
RUNTIME_VERSION(

lib/AST/Availability.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -877,7 +877,7 @@ AvailabilityRange ASTContext::getSwiftAvailability(unsigned major,
877877
#define PLATFORM_TEST_macOS target.isMacOSX()
878878
#define PLATFORM_TEST_iOS target.isiOS()
879879
#define PLATFORM_TEST_watchOS target.isWatchOS()
880-
#define PLATFORM_TEST_xrOS target.isXROS()
880+
#define PLATFORM_TEST_visionOS target.isXROS()
881881

882882
#define _SECOND(A, B) B
883883
#define SECOND(T) _SECOND T
@@ -892,7 +892,7 @@ AvailabilityRange ASTContext::getSwiftAvailability(unsigned major,
892892
#undef PLATFORM_TEST_macOS
893893
#undef PLATFORM_TEST_iOS
894894
#undef PLATFORM_TEST_watchOS
895-
#undef PLATFORM_TEST_xrOS
895+
#undef PLATFORM_TEST_visionOS
896896
#undef _SECOND
897897
#undef SECOND
898898

0 commit comments

Comments
 (0)