From: Vlad Tsyrklevich Date: Thu, 12 Oct 2017 04:17:33 +0000 (+0000) Subject: [cfi-verify] Fix unittest failures w/o x86 target X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=fff82ffa0eef867b9383c0852af919e0e1f6e91a;p=llvm [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 --- 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()