[cfi] only add cfi tests on supported arches.

Differential Revision:  https://reviews.llvm.org/D35101

llvm-svn: 311745
This commit is contained in:
Sean Fertile 2017-08-25 01:50:53 +00:00
parent 2592327dae
commit 6e5e0bcd80
1 changed files with 7 additions and 5 deletions

View File

@ -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