[clang] 1257fe1 - [Clang] Change the offload packager build to be a clang tool
Joseph Huber via cfe-commits
cfe-commits at lists.llvm.org
Fri Jun 3 14:35:43 PDT 2022
Author: Joseph Huber
Date: 2022-06-03T17:35:26-04:00
New Revision: 1257fe193a35b3b3ee8ccc5987f376b0b6dc21ea
URL: https://github.com/llvm/llvm-project/commit/1257fe193a35b3b3ee8ccc5987f376b0b6dc21ea
DIFF: https://github.com/llvm/llvm-project/commit/1257fe193a35b3b3ee8ccc5987f376b0b6dc21ea.diff
LOG: [Clang] Change the offload packager build to be a clang tool
Summary:
This patch changes the CMake build configruation for the
`clang-offload-packager` to be a clang tool rather than an executable.
Added:
Modified:
clang/tools/clang-offload-packager/CMakeLists.txt
Removed:
################################################################################
diff --git a/clang/tools/clang-offload-packager/CMakeLists.txt b/clang/tools/clang-offload-packager/CMakeLists.txt
index bf95f5d5f8dd..a781825895a5 100644
--- a/clang/tools/clang-offload-packager/CMakeLists.txt
+++ b/clang/tools/clang-offload-packager/CMakeLists.txt
@@ -3,26 +3,16 @@ set(LLVM_LINK_COMPONENTS
Object
Support)
-if(NOT CLANG_BUILT_STANDALONE)
- set(tablegen_deps intrinsics_gen)
-endif()
-
-add_clang_executable(clang-offload-packager
+add_clang_tool(clang-offload-packager
ClangOffloadPackager.cpp
DEPENDS
${tablegen_deps}
)
-set(CLANG_LINKER_WRAPPER_LIB_DEPS
- clangBasic
- )
-
add_dependencies(clang clang-offload-packager)
-target_link_libraries(clang-offload-packager
+clang_target_link_libraries(clang-offload-packager
PRIVATE
- ${CLANG_LINKER_WRAPPER_LIB_DEPS}
+ clangBasic
)
-
-install(TARGETS clang-offload-packager RUNTIME DESTINATION bin)
More information about the cfe-commits
mailing list