set(LLVM_LINK_COMPONENTS
  AllTargetsAsmPrinters
  AllTargetsAsmParsers
  AllTargetsDescs
  AllTargetsDisassemblers
  AllTargetsInfos
  CFIVerify
  MC
  MCParser
  Object
  Support
  )

add_llvm_unittest(CFIVerifyTests
  FileAnalysis.cpp)

set(LLVM_LINK_COMPONENTS
  AllTargetsAsmPrinters
  AllTargetsAsmParsers
  AllTargetsDescs
  AllTargetsDisassemblers
  AllTargetsInfos
  CFIVerify
  MC
  MCParser
  Object
  Support
  )

list(FIND LLVM_ARGETS_TO_BUILD "X86" x86_idx)
if (NOT x86_idx LESS 0)
  add_llvm_unittest(CFIVerifyTests
    FileAnalysis.cpp)
endif()

Fix unittest failures w/o x86 target
[cfi-verify] Fix unittest failures w/o x86 target

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: 0ff597fd157e6f4fc38580e8d64ab130330d2411@315556 91177308-0d34-0410-b5e6-96231b3b80d8
