mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 19:23:23 +01:00
894fb2a5d3
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
23 lines
443 B
CMake
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)
|