set(LLVM_LINK_COMPONENTS Core ExecutionEngine IRReader JITLink Object OrcJIT OrcShared OrcTargetProcess Passes RuntimeDyld Support native ) add_llvm_unittest(OrcJITTests CoreAPIsTest.cpp ExecutionSessionWrapperFunctionCallsTest.cpp IndirectionUtilsTest.cpp JITTargetMachineBuilderTest.cpp LazyCallThroughAndReexportsTest.cpp ObjectLinkingLayerTest.cpp OrcCAPITest.cpp OrcTestCommon.cpp QueueChannel.cpp ResourceTrackerTest.cpp RPCUtilsTest.cpp RTDyldObjectLinkingLayerTest.cpp SimplePackedSerializationTest.cpp SymbolStringPoolTest.cpp ThreadSafeModuleTest.cpp WrapperFunctionUtilsTest.cpp ) target_link_libraries(OrcJITTests PRIVATE LLVMTestingSupport ${ORC_JIT_TEST_LIBS})