[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,11 +36,13 @@ elseif(WIN32)
# FIXME: enable ThinLTO tests after fixing http://llvm.org/pr32770
add_cfi_test_suites(True False)
else()
add_cfi_test_suites(False False)
add_cfi_test_suites(False True)
if (COMPILER_RT_HAS_LLD)
add_cfi_test_suites(True False)
add_cfi_test_suites(True True)
if (CFI_SUPPORTED_ARCH)
add_cfi_test_suites(False False)
add_cfi_test_suites(False True)
if (COMPILER_RT_HAS_LLD)
add_cfi_test_suites(True False)
add_cfi_test_suites(True True)
endif()
endif()
endif()