From: Krzysztof Parzyszek Date: Sun, 15 Oct 2017 16:55:23 +0000 (+0000) Subject: [unittests] Only build llvm-cfi-verify if X86 is in LLVM_TARGETS_TO_BUILD X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8ceb11ff2e1728d46b216f9eae1e6399fc522b95;p=llvm [unittests] Only build llvm-cfi-verify if X86 is in LLVM_TARGETS_TO_BUILD The test requires a target for triple x86-64, and it fails in builds that do not have the X86 backend. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@315861 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/unittests/tools/CMakeLists.txt b/unittests/tools/CMakeLists.txt index de39fd9cd6c..5ac4c950efe 100644 --- a/unittests/tools/CMakeLists.txt +++ b/unittests/tools/CMakeLists.txt @@ -1 +1,4 @@ -add_subdirectory(llvm-cfi-verify) +if(LLVM_TARGETS_TO_BUILD MATCHES "X86") + add_subdirectory(llvm-cfi-verify) +endif() +