[cfi] only add cfi tests on supported arches.
@@ -36,6 +36,7 @@ elseif(WIN32)
# FIXME: enable ThinLTO tests after fixing http://llvm.org/pr32770
add_cfi_test_suites(True False)
else()
+ if (CFI_SUPPORTED_ARCH)
add_cfi_test_suites(False False)
add_cfi_test_suites(False True)
if (COMPILER_RT_HAS_LLD)
@@ -43,6 +44,7 @@ else()
add_cfi_test_suites(True True)
endif()
endif()
+endif()
set(CFI_TEST_DEPS ${SANITIZER_COMMON_LIT_TEST_DEPS})
list(APPEND CFI_TEST_DEPS
