[compiler-rt] [compiler-rt] Adds builtins support for xros. (PR #83484)
via llvm-commits
llvm-commits at lists.llvm.org
Thu Feb 29 13:23:50 PST 2024
https://github.com/rohit-rao created https://github.com/llvm/llvm-project/pull/83484
Adds support for xros when compiling builtins. This is disabled by default and controlled with COMPILER_RT_ENABLE_XROS, similar to watchOS/tvOS.
>From 0648f12f96c2da091cc9fa681c81802faeab2a05 Mon Sep 17 00:00:00 2001
From: Rohit Rao <rohitrao at google.com>
Date: Thu, 29 Feb 2024 16:16:24 -0500
Subject: [PATCH] [compiler-rt] Adds builtins support for xros.
---
compiler-rt/cmake/builtin-config-ix.cmake | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/compiler-rt/cmake/builtin-config-ix.cmake b/compiler-rt/cmake/builtin-config-ix.cmake
index b17c43bf6a68b8..7cd286f1c3ee8b 100644
--- a/compiler-rt/cmake/builtin-config-ix.cmake
+++ b/compiler-rt/cmake/builtin-config-ix.cmake
@@ -92,6 +92,8 @@ if(APPLE)
find_darwin_sdk_dir(DARWIN_watchos_SYSROOT watchos)
find_darwin_sdk_dir(DARWIN_tvossim_SYSROOT appletvsimulator)
find_darwin_sdk_dir(DARWIN_tvos_SYSROOT appletvos)
+ find_darwin_sdk_dir(DARWIN_xrossim_SYSROOT xrsimulator)
+ find_darwin_sdk_dir(DARWIN_xros_SYSROOT xros)
# Get supported architecture from SDKSettings.
function(sdk_has_arch_support sdk_path os arch has_support)
@@ -162,6 +164,11 @@ if(APPLE)
list(APPEND DARWIN_tvossim_BUILTIN_ALL_POSSIBLE_ARCHS arm64)
endif()
endif()
+ if(COMPILER_RT_ENABLE_XROS)
+ list(APPEND DARWIN_EMBEDDED_PLATFORMS xros)
+ set(DARWIN_xros_BUILTIN_ALL_POSSIBLE_ARCHS arm64)
+ set(DARWIN_xrossim_BUILTIN_ALL_POSSIBLE_ARCHS ${X86_64} arm64)
+ endif()
set(BUILTIN_SUPPORTED_OS osx)
More information about the llvm-commits
mailing list