1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 19:23:23 +01:00
llvm-mirror/tools/llvm-jitlink/llvm-jitlink-executor/CMakeLists.txt
Lang Hames 894fb2a5d3 [llvm-jitlink] Link libnetwork on Haiku in llvm-jitlink
The system's network API is in libnetwork.so, so we explicitly need to link to
them on Haiku. This patch is similar to https://reviews.llvm.org/D97633.

Patch by Niels Reedijk. Thanks Niels!

Reviewed By: lhames

Differential Revision: https://reviews.llvm.org/D98405
2021-05-14 20:49:03 -07:00

23 lines
443 B
CMake

set(LLVM_LINK_COMPONENTS
OrcShared
OrcTargetProcess
Support
)
add_llvm_utility(llvm-jitlink-executor
llvm-jitlink-executor.cpp
DEPENDS
intrinsics_gen
)
if(${CMAKE_SYSTEM_NAME} MATCHES "Haiku")
target_link_libraries(llvm-jitlink-executor PRIVATE network)
endif()
if(${CMAKE_SYSTEM_NAME} MATCHES "SunOS")
target_link_libraries(llvm-jitlink-executor PRIVATE socket)
endif()
export_executable_symbols(llvm-jitlink-executor)