]> granicus.if.org Git - llvm/commitdiff
[unittests] Only build llvm-cfi-verify if X86 is in LLVM_TARGETS_TO_BUILD
authorKrzysztof Parzyszek <kparzysz@codeaurora.org>
Sun, 15 Oct 2017 16:55:23 +0000 (16:55 +0000)
committerKrzysztof Parzyszek <kparzysz@codeaurora.org>
Sun, 15 Oct 2017 16:55:23 +0000 (16:55 +0000)
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

index de39fd9cd6ca3b86d7c7f346b380d3e7652f55d4..5ac4c950efe79db9abcfe7d568f5045d7c7af5c9 100644 (file)
@@ -1 +1,4 @@
-add_subdirectory(llvm-cfi-verify)
+if(LLVM_TARGETS_TO_BUILD MATCHES "X86")
+  add_subdirectory(llvm-cfi-verify)
+endif()
+