set(LLVM_LINK_COMPONENTS
  ${LLVM_TARGETS_TO_BUILD}
  JITLink
  MC
  Object
  RuntimeDyld
  Support
  )

add_llvm_unittest(JITLinkTests
    JITLinkTestCommon.cpp
    JITLinkTest_MachO_x86_64_Tests.cpp
  )

target_link_libraries(JITLinkTests PRIVATE LLVMTestingSupport)

set(LLVM_LINK_COMPONENTS
  ${LLVM_TARGETS_TO_BUILD}
  JITLink
  MC
  MCDisassembler
  Object
  RuntimeDyld
  Support
  Target
  )

add_llvm_unittest(JITLinkTests
    JITLinkTestCommon.cpp
    JITLinkTest_MachO_x86_64_Tests.cpp
  )

target_link_libraries(JITLinkTests PRIVATE LLVMTestingSupport)

Add dependencies on MCDissassembler and Target to unit test.
[JITLink] Add dependencies on MCDissassembler and Target to unit test.

git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@358836 91177308-0d34-0410-b5e6-96231b3b80d8
