...with more fixes. The original patch was reverted in 3e9cc543f22 due to bot failures caused by a missing dependence on librt. That issue was fixed in 32d8d23cd0, but that commit also broke sanitizer bots due to a bug in SimplePackedSerialization: empty ArrayRef<char>s triggered a zero-byte memcpy from a null source. The ArrayRef<char> serialization issue was fixed in 67220c2ad7, and this patch has also been updated with a new custom SharedMemorySegFinalizeRequest message that should avoid serializing empty ArrayRefs in the first place. https://reviews.llvm.org/D128544
26 lines
506 B
CMake
26 lines
506 B
CMake
if( CMAKE_HOST_UNIX AND HAVE_LIBRT )
|
|
set(rt_lib rt)
|
|
endif()
|
|
|
|
add_llvm_component_library(LLVMOrcTargetProcess
|
|
ExecutorSharedMemoryMapperService.cpp
|
|
JITLoaderGDB.cpp
|
|
OrcRTBootstrap.cpp
|
|
RegisterEHFrames.cpp
|
|
SimpleExecutorDylibManager.cpp
|
|
SimpleExecutorMemoryManager.cpp
|
|
SimpleRemoteEPCServer.cpp
|
|
TargetExecutionUtils.cpp
|
|
|
|
ADDITIONAL_HEADER_DIRS
|
|
${LLVM_MAIN_INCLUDE_DIR}/llvm/ExecutionEngine/Orc
|
|
|
|
LINK_LIBS
|
|
${LLVM_PTHREAD_LIB}
|
|
${rt_lib}
|
|
|
|
LINK_COMPONENTS
|
|
OrcShared
|
|
Support
|
|
)
|