Switch clang-check, clang-extdef-mapping and clang-offload-bundler
to use add_clang_tool() rather than add_clang_executable() with a custom
install rule. This makes them LLVM_DISTRIBUTION_COMPONENTS-friendly.
Differential Revision: https://reviews.llvm.org/D68429
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@373785
91177308-0d34-0410-b5e6-
96231b3b80d8
Support
)
-add_clang_executable(clang-check
+add_clang_tool(clang-check
ClangCheck.cpp
)
clangStaticAnalyzerFrontend
clangTooling
)
-
-install(TARGETS clang-check
- RUNTIME DESTINATION bin)
support
)
-add_clang_executable(clang-extdef-mapping
+add_clang_tool(clang-extdef-mapping
ClangExtDefMapGen.cpp
)
clangSerialization
clangTooling
)
-
-install(TARGETS clang-extdef-mapping
- RUNTIME DESTINATION bin)
set(tablegen_deps intrinsics_gen)
endif()
-add_clang_executable(clang-offload-bundler
+add_clang_tool(clang-offload-bundler
ClangOffloadBundler.cpp
DEPENDS
PRIVATE
${CLANG_OFFLOAD_BUNDLER_LIB_DEPS}
)
-
-install(TARGETS clang-offload-bundler RUNTIME DESTINATION bin)