From 8ceb11ff2e1728d46b216f9eae1e6399fc522b95 Mon Sep 17 00:00:00 2001 From: Krzysztof Parzyszek Date: Sun, 15 Oct 2017 16:55:23 +0000 Subject: [PATCH] [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 --- unittests/tools/CMakeLists.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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() + -- 2.40.0