Skip to content

Commit 5a72b78

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 623d063 commit 5a72b78

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
@@ -878,7 +878,7 @@ AvailabilityRange ASTContext::getSwiftAvailability(unsigned major,
878878
#define PLATFORM_TEST_macOS target.isMacOSX()
879879
#define PLATFORM_TEST_iOS target.isiOS()
880880
#define PLATFORM_TEST_watchOS target.isWatchOS()
881-
#define PLATFORM_TEST_xrOS target.isXROS()
881+
#define PLATFORM_TEST_visionOS target.isXROS()
882882

883883
#define _SECOND(A, B) B
884884
#define SECOND(T) _SECOND T
@@ -893,7 +893,7 @@ AvailabilityRange ASTContext::getSwiftAvailability(unsigned major,
893893
#undef PLATFORM_TEST_macOS
894894
#undef PLATFORM_TEST_iOS
895895
#undef PLATFORM_TEST_watchOS
896-
#undef PLATFORM_TEST_xrOS
896+
#undef PLATFORM_TEST_visionOS
897897
#undef _SECOND
898898
#undef SECOND
899899

0 commit comments

Comments
 (0)