2012-08-10 01:17:01 +08:00
|
|
|
set(LLVM_LINK_COMPONENTS
|
|
|
|
${LLVM_TARGETS_TO_BUILD}
|
|
|
|
asmparser
|
2013-01-20 02:28:24 +08:00
|
|
|
bitreader
|
2011-08-09 11:41:03 +08:00
|
|
|
support
|
2012-08-10 01:17:01 +08:00
|
|
|
mc
|
2011-08-09 11:41:03 +08:00
|
|
|
)
|
|
|
|
|
2011-08-09 11:39:19 +08:00
|
|
|
add_clang_executable(diagtool
|
|
|
|
diagtool_main.cpp
|
|
|
|
DiagTool.cpp
|
2012-06-05 00:57:50 +08:00
|
|
|
DiagnosticNames.cpp
|
2011-08-09 11:39:19 +08:00
|
|
|
ListWarnings.cpp
|
2012-06-05 00:57:50 +08:00
|
|
|
ShowEnabledWarnings.cpp
|
2012-06-24 08:07:45 +08:00
|
|
|
TreeView.cpp
|
2011-08-09 11:39:19 +08:00
|
|
|
)
|
|
|
|
|
2012-06-17 23:41:44 +08:00
|
|
|
add_dependencies(diagtool
|
|
|
|
ClangDiagnosticIndexName
|
|
|
|
)
|
|
|
|
|
2012-06-21 09:30:21 +08:00
|
|
|
target_link_libraries(diagtool
|
|
|
|
clangBasic
|
|
|
|
clangLex
|
|
|
|
clangSema
|
|
|
|
clangFrontend
|
|
|
|
)
|
|
|
|
|
2011-08-09 11:39:19 +08:00
|
|
|
if(UNIX)
|
|
|
|
set(CLANGXX_LINK_OR_COPY create_symlink)
|
|
|
|
else()
|
|
|
|
set(CLANGXX_LINK_OR_COPY copy)
|
|
|
|
endif()
|