From fff82ffa0eef867b9383c0852af919e0e1f6e91a Mon Sep 17 00:00:00 2001 From: Vlad Tsyrklevich Date: Thu, 12 Oct 2017 04:17:33 +0000 Subject: [PATCH] [cfi-verify] Fix unittest failures w/o x86 target The llvm-cfi-verify unit tests fail if LLVM is built without the X86 target, disable the unit tests from being built unless X86 is enabled for now. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@315556 91177308-0d34-0410-b5e6-96231b3b80d8 --- unittests/tools/llvm-cfi-verify/CMakeLists.txt | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/unittests/tools/llvm-cfi-verify/CMakeLists.txt b/unittests/tools/llvm-cfi-verify/CMakeLists.txt index c9ae51f2335..110b377530c 100644 --- a/unittests/tools/llvm-cfi-verify/CMakeLists.txt +++ b/unittests/tools/llvm-cfi-verify/CMakeLists.txt @@ -11,5 +11,8 @@ set(LLVM_LINK_COMPONENTS Support ) -add_llvm_unittest(CFIVerifyTests - FileAnalysis.cpp) +list(FIND LLVM_ARGETS_TO_BUILD "X86" x86_idx) +if (NOT x86_idx LESS 0) + add_llvm_unittest(CFIVerifyTests + FileAnalysis.cpp) +endif() -- 2.50.1