[sanitizer] Improve FreeBSD ASLR detection
[llvm-project.git] / llvm / tools / llvm-jitlink / CMakeLists.txt
blobc9f9a536d49d5f5ccc22aa3229400d145d861aef
1 if ( LLVM_INCLUDE_UTILS )
2   add_subdirectory(llvm-jitlink-executor)
3 endif()
5 set(LLVM_LINK_COMPONENTS
6   AllTargetsDescs
7   AllTargetsDisassemblers
8   AllTargetsInfos
9   BinaryFormat
10   ExecutionEngine
11   JITLink
12   MC
13   Object
14   OrcJIT
15   OrcShared
16   OrcTargetProcess
17   RuntimeDyld
18   Support
19   )
21 add_llvm_tool(llvm-jitlink
22   llvm-jitlink.cpp
23   llvm-jitlink-elf.cpp
24   llvm-jitlink-macho.cpp
25   )
27 if(${CMAKE_SYSTEM_NAME} MATCHES "Haiku")
28   target_link_libraries(llvm-jitlink PRIVATE network)
29 endif()
31 if(${CMAKE_SYSTEM_NAME} MATCHES "SunOS")
32   target_link_libraries(llvm-jitlink PRIVATE socket nsl)
33 endif()
35 export_executable_symbols(llvm-jitlink)