aboutsummaryrefslogtreecommitdiff
path: root/test/sanitizer_common/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'test/sanitizer_common/CMakeLists.txt')
-rw-r--r--test/sanitizer_common/CMakeLists.txt7
1 files changed, 6 insertions, 1 deletions
diff --git a/test/sanitizer_common/CMakeLists.txt b/test/sanitizer_common/CMakeLists.txt
index 7eca7f7672d0..54b9135278ca 100644
--- a/test/sanitizer_common/CMakeLists.txt
+++ b/test/sanitizer_common/CMakeLists.txt
@@ -19,7 +19,12 @@ foreach(tool ${SUPPORTED_TOOLS})
if(${tool_toupper}_SUPPORTED_ARCH AND NOT COMPILER_RT_STANDALONE_BUILD)
list(APPEND SANITIZER_COMMON_TEST_DEPS ${tool})
endif()
- foreach(arch ${${tool_toupper}_SUPPORTED_ARCH})
+ set(TEST_ARCH ${${tool_toupper}_SUPPORTED_ARCH})
+ if(APPLE)
+ darwin_filter_host_archs(${tool_toupper}_SUPPORTED_ARCH TEST_ARCH)
+ endif()
+
+ foreach(arch ${TEST_ARCH})
set(SANITIZER_COMMON_LIT_TEST_MODE ${tool})
set(SANITIZER_COMMON_TEST_TARGET_ARCH ${arch})
if(${arch} MATCHES "arm|aarch64")