llvm-project/bolt/lib/RuntimeLibs/CMakeLists.txt
serge-sans-paille 61cff9079c [BOLT] Support building bolt when LLVM_LINK_LLVM_DYLIB is ON
This does *not* link with libLLVM, but with static archives instead. Not
super-great, but at least the build works, which is probably better than
failing.

Related to #57551

Differential Revision: https://reviews.llvm.org/D134434
2022-09-23 07:59:30 +02:00

23 lines
345 B
CMake

set(LLVM_LINK_COMPONENTS
BinaryFormat
MC
Object
RuntimeDyld
Support
)
add_llvm_library(LLVMBOLTRuntimeLibs
RuntimeLibrary.cpp
HugifyRuntimeLibrary.cpp
InstrumentationRuntimeLibrary.cpp
DISABLE_LLVM_LINK_LLVM_DYLIB
)
target_link_libraries(LLVMBOLTRuntimeLibs
PRIVATE
LLVMBOLTCore
LLVMBOLTPasses
LLVMBOLTUtils
)