[llvm] r315861 - [unittests] Only build llvm-cfi-verify if X86 is in LLVM_TARGETS_TO_BUILD

Krzysztof Parzyszek via llvm-commits llvm-commits at lists.llvm.org
Sun Oct 15 09:55:23 PDT 2017


Author: kparzysz
Date: Sun Oct 15 09:55:23 2017
New Revision: 315861

URL: http://llvm.org/viewvc/llvm-project?rev=315861&view=rev
Log:
[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.


Modified:
    llvm/trunk/unittests/tools/CMakeLists.txt

Modified: llvm/trunk/unittests/tools/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/unittests/tools/CMakeLists.txt?rev=315861&r1=315860&r2=315861&view=diff
==============================================================================
--- llvm/trunk/unittests/tools/CMakeLists.txt (original)
+++ llvm/trunk/unittests/tools/CMakeLists.txt Sun Oct 15 09:55:23 2017
@@ -1 +1,4 @@
-add_subdirectory(llvm-cfi-verify)
+if(LLVM_TARGETS_TO_BUILD MATCHES "X86")
+  add_subdirectory(llvm-cfi-verify)
+endif()
+




More information about the llvm-commits mailing list