File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -156,6 +156,7 @@ if(APPLE)
156
156
157
157
option (COMPILER_RT_ENABLE_WATCHOS "Enable building for watchOS - Experimental" Off )
158
158
option (COMPILER_RT_ENABLE_TVOS "Enable building for tvOS - Experimental" Off )
159
+ option (COMPILER_RT_ENABLE_XROS "Enable building for xrOS - Experimental" Off )
159
160
160
161
else ()
161
162
option (COMPILER_RT_DEFAULT_TARGET_ONLY "Build builtins only for the default target" Off )
Original file line number Diff line number Diff line change @@ -92,6 +92,8 @@ if(APPLE)
92
92
find_darwin_sdk_dir (DARWIN_watchos_SYSROOT watchos )
93
93
find_darwin_sdk_dir (DARWIN_tvossim_SYSROOT appletvsimulator )
94
94
find_darwin_sdk_dir (DARWIN_tvos_SYSROOT appletvos )
95
+ find_darwin_sdk_dir (DARWIN_xrossim_SYSROOT xrsimulator )
96
+ find_darwin_sdk_dir (DARWIN_xros_SYSROOT xros )
95
97
96
98
# Get supported architecture from SDKSettings.
97
99
function (sdk_has_arch_support sdk_path os arch has_support )
@@ -162,6 +164,11 @@ if(APPLE)
162
164
list (APPEND DARWIN_tvossim_BUILTIN_ALL_POSSIBLE_ARCHS arm64 )
163
165
endif ()
164
166
endif ()
167
+ if (COMPILER_RT_ENABLE_XROS )
168
+ list (APPEND DARWIN_EMBEDDED_PLATFORMS xros )
169
+ set (DARWIN_xros_BUILTIN_ALL_POSSIBLE_ARCHS ${ARM64} ${ARM32} )
170
+ set (DARWIN_xrossim_BUILTIN_ALL_POSSIBLE_ARCHS arm64 )
171
+ endif ()
165
172
166
173
set (BUILTIN_SUPPORTED_OS osx )
167
174
You can’t perform that action at this time.
0 commit comments