[NFC][Py Reformat] Reformat python files in llvm
[llvm-project.git] / llvm / tools / llvm-jitlink / CMakeLists.txt
blobb7371e71af4ffafc461650f35a658012d203bb19
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   TargetParser
20   )
22 add_llvm_tool(llvm-jitlink
23   llvm-jitlink.cpp
24   llvm-jitlink-coff.cpp
25   llvm-jitlink-elf.cpp
26   llvm-jitlink-macho.cpp
27   )
29 if(${CMAKE_SYSTEM_NAME} MATCHES "Haiku")
30   target_link_libraries(llvm-jitlink PRIVATE network)
31 endif()
33 if(${CMAKE_SYSTEM_NAME} MATCHES "SunOS")
34   target_link_libraries(llvm-jitlink PRIVATE socket nsl)
35 endif()
37 export_executable_symbols(llvm-jitlink)