Skip to content

Commit

Permalink
[cfi-verify] Fix unittest failures w/o x86 target
Browse files Browse the repository at this point in the history
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
  • Loading branch information
vlad902 committed Oct 12, 2017
1 parent fba3ac1 commit fff82ff
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions unittests/tools/llvm-cfi-verify/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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()

0 comments on commit fff82ff

Please sign in to comment.