mirror of
https://github.com/Gericom/teak-llvm.git
synced 2025-06-19 03:25:54 -04:00

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 llvm-svn: 373785
22 lines
323 B
CMake
22 lines
323 B
CMake
set( LLVM_LINK_COMPONENTS
|
|
${LLVM_TARGETS_TO_BUILD}
|
|
Option
|
|
Support
|
|
)
|
|
|
|
add_clang_tool(clang-check
|
|
ClangCheck.cpp
|
|
)
|
|
|
|
clang_target_link_libraries(clang-check
|
|
PRIVATE
|
|
clangAST
|
|
clangBasic
|
|
clangDriver
|
|
clangFrontend
|
|
clangRewriteFrontend
|
|
clangSerialization
|
|
clangStaticAnalyzerFrontend
|
|
clangTooling
|
|
)
|