]> granicus.if.org Git - llvm/commitdiff
[cfi-verify] Fix unittest failures w/o x86 target
authorVlad Tsyrklevich <vlad@tsyrklevich.net>
Thu, 12 Oct 2017 04:17:33 +0000 (04:17 +0000)
committerVlad Tsyrklevich <vlad@tsyrklevich.net>
Thu, 12 Oct 2017 04:17:33 +0000 (04:17 +0000)
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

unittests/tools/llvm-cfi-verify/CMakeLists.txt

index c9ae51f233530008028951548d9ca7426a079bab..110b377530c469e78c89cac322df1c087cfb9e8e 100644 (file)
@@ -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()