set(LLVM_LINK_COMPONENTS DebugInfoDWARF Demangle MC MCDisassembler Object Support BinaryFormat AsmPrinter TargetParser ) add_llvm_library(LLVMBOLTCore AddressMap.cpp BinaryBasicBlock.cpp BinaryContext.cpp BinaryData.cpp BinaryEmitter.cpp BinaryFunction.cpp BinaryFunctionProfile.cpp BinarySection.cpp DebugData.cpp DIEBuilder.cpp DynoStats.cpp Exceptions.cpp FunctionLayout.cpp HashUtilities.cpp JumpTable.cpp MCPlusBuilder.cpp ParallelUtilities.cpp Relocation.cpp DISABLE_LLVM_LINK_LLVM_DYLIB LINK_LIBS ${LLVM_PTHREAD_LIB} ) target_link_libraries(LLVMBOLTCore PRIVATE LLVMBOLTUtils )