summaryrefslogtreecommitdiff
path: root/compiler-rt/cmake
diff options
context:
space:
mode:
authorusama hameed <u_hameed@apple.com>2023-01-10 17:54:46 -0800
committerusama hameed <u_hameed@apple.com>2023-01-17 14:37:06 -0800
commit4729f6e03a12b0f3613416dc6f65407afa7e8f19 (patch)
tree6e13e0aedb691e74cf7c12cd1318d93814e8885e /compiler-rt/cmake
parenta44477b1f4b5c462474c12144d5f914d04a674cb (diff)
downloadllvm-4729f6e03a12b0f3613416dc6f65407afa7e8f19.tar.gz
[CompilerRT] Remove sanitizer support for i386 iossim
Summary: This patch removes building sanitizers for i386 iossim. This is to reduce the toolchain size. Reviewers: Subscribers:
Diffstat (limited to 'compiler-rt/cmake')
-rw-r--r--compiler-rt/cmake/Modules/CompilerRTDarwinUtils.cmake5
1 files changed, 5 insertions, 0 deletions
diff --git a/compiler-rt/cmake/Modules/CompilerRTDarwinUtils.cmake b/compiler-rt/cmake/Modules/CompilerRTDarwinUtils.cmake
index e372da0d99ba..a826c513cd81 100644
--- a/compiler-rt/cmake/Modules/CompilerRTDarwinUtils.cmake
+++ b/compiler-rt/cmake/Modules/CompilerRTDarwinUtils.cmake
@@ -142,6 +142,11 @@ function(darwin_test_archs os valid_archs)
list(REMOVE_ITEM archs "x86_64h")
endif()
+ if(${os} MATCHES "iossim")
+ message(STATUS "Disabling i386 slice for iossim")
+ list(REMOVE_ITEM archs "i386")
+ endif()
+
set(working_archs)
foreach(arch ${archs})