diff --git a/compiler-rt/cmake/Modules/CompilerRTDarwinUtils.cmake b/compiler-rt/cmake/Modules/CompilerRTDarwinUtils.cmake --- a/compiler-rt/cmake/Modules/CompilerRTDarwinUtils.cmake +++ b/compiler-rt/cmake/Modules/CompilerRTDarwinUtils.cmake @@ -147,6 +147,13 @@ list(REMOVE_ITEM archs "i386") endif() + if(${os} MATCHES "^ios$") + message(STATUS "Disabling sanitizers armv7* slice for ios") + list(REMOVE_ITEM archs "armv7") + list(REMOVE_ITEM archs "armv7k") + list(REMOVE_ITEM archs "armv7s") + endif() + set(working_archs) foreach(arch ${archs})