| 1 | set(LLVM_LINK_COMPONENTS BitWriter Core Object Support) |
| 2 | |
| 3 | if(NOT CLANG_BUILT_STANDALONE) |
| 4 | set(tablegen_deps intrinsics_gen) |
| 5 | endif() |
| 6 | |
| 7 | add_clang_executable(clang-offload-bundler |
| 8 | ClangOffloadBundler.cpp |
| 9 | |
| 10 | DEPENDS |
| 11 | ${tablegen_deps} |
| 12 | ) |
| 13 | |
| 14 | set(CLANG_OFFLOAD_BUNDLER_LIB_DEPS |
| 15 | clangBasic |
| 16 | ) |
| 17 | |
| 18 | add_dependencies(clang clang-offload-bundler) |
| 19 | |
| 20 | target_link_libraries(clang-offload-bundler |
| 21 | PRIVATE |
| 22 | ${CLANG_OFFLOAD_BUNDLER_LIB_DEPS} |
| 23 | ) |
| 24 | |
| 25 | install(TARGETS clang-offload-bundler RUNTIME DESTINATION bin) |
| 26 | |