mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-02-12 21:28:48 +00:00
![Tom Stellard](/assets/img/avatar_default.png)
Summary: Setting CLANG_LINK_CLANG_DYLIB=ON causes clang tools to link against libclang_shared.so instead of the individual component libraries. Reviewers: mgorny, beanz, smeenai, phosek, sylvestre.ledru Subscribers: arphaman, cfe-commits, llvm-commits Tags: #clang Differential Revision: https://reviews.llvm.org/D63503 llvm-svn: 365092
32 lines
551 B
CMake
32 lines
551 B
CMake
set(LLVM_LINK_COMPONENTS
|
|
Support
|
|
)
|
|
|
|
add_clang_executable(diagtool
|
|
diagtool_main.cpp
|
|
DiagTool.cpp
|
|
DiagnosticNames.cpp
|
|
FindDiagnosticID.cpp
|
|
ListWarnings.cpp
|
|
ShowEnabledWarnings.cpp
|
|
TreeView.cpp
|
|
)
|
|
|
|
clang_target_link_libraries(diagtool
|
|
PRIVATE
|
|
clangBasic
|
|
clangFrontend
|
|
)
|
|
|
|
if (NOT LLVM_INSTALL_TOOLCHAIN_ONLY)
|
|
install(TARGETS diagtool
|
|
COMPONENT diagtool
|
|
RUNTIME DESTINATION bin)
|
|
|
|
if (NOT LLVM_ENABLE_IDE)
|
|
add_llvm_install_targets(install-diagtool
|
|
DEPENDS diagtool
|
|
COMPONENT diagtool)
|
|
endif()
|
|
endif()
|