[CompilerRT] Remove sanitizer support for i386 iossim
authorusama hameed <u_hameed@apple.com>
Wed, 11 Jan 2023 01:54:46 +0000 (17:54 -0800)
committerusama hameed <u_hameed@apple.com>
Tue, 17 Jan 2023 22:37:06 +0000 (14:37 -0800)
Summary:
This patch removes building sanitizers for i386 iossim. This is to reduce the toolchain size.
Reviewers:

Subscribers:

compiler-rt/cmake/Modules/CompilerRTDarwinUtils.cmake

index e372da0..a826c51 100644 (file)
@@ -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})