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
23 lines
345 B
CMake
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
|
|
)
|