From 6e5e0bcd8073b3c83048072bfe115f9838ef21b5 Mon Sep 17 00:00:00 2001 From: Sean Fertile Date: Fri, 25 Aug 2017 01:50:53 +0000 Subject: [PATCH] [cfi] only add cfi tests on supported arches. Differential Revision: https://reviews.llvm.org/D35101 llvm-svn: 311745 --- compiler-rt/test/cfi/CMakeLists.txt | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/compiler-rt/test/cfi/CMakeLists.txt b/compiler-rt/test/cfi/CMakeLists.txt index fb45f2f400ce..0bad50e2dffe 100644 --- a/compiler-rt/test/cfi/CMakeLists.txt +++ b/compiler-rt/test/cfi/CMakeLists.txt @@ -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()