aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNico Weber <nicolasweber@gmx.de>2016-07-07 13:19:45 +0000
committerNico Weber <nicolasweber@gmx.de>2016-07-07 13:19:45 +0000
commit1e348b339c93a9510b624cb40bcd6b2d6884201b (patch)
treeb0728fc4f29d55b53453795e632a1d58986f60e6
parentb3b972a5a8fa8095713721dc0f52fc045a75dc95 (diff)
downloadllvm-1e348b339c93a9510b624cb40bcd6b2d6884201b.zip
llvm-1e348b339c93a9510b624cb40bcd6b2d6884201b.tar.gz
llvm-1e348b339c93a9510b624cb40bcd6b2d6884201b.tar.bz2
[clang-tidy] Add dependency on clang-headers
Currently, to be able to process a source file including e.g. stddef.h with clang-tidy, one has to build both clang-tidy and the clang-headers target. Since stddef.h is needed for virtually any source file, let clang-tidy depend on clang-headers, so that it Just Works after it has been built. http://reviews.llvm.org/D22046 llvm-svn: 274751
-rw-r--r--clang-tools-extra/clang-tidy/tool/CMakeLists.txt3
1 files changed, 3 insertions, 0 deletions
diff --git a/clang-tools-extra/clang-tidy/tool/CMakeLists.txt b/clang-tools-extra/clang-tidy/tool/CMakeLists.txt
index 766da71d..45ec798 100644
--- a/clang-tools-extra/clang-tidy/tool/CMakeLists.txt
+++ b/clang-tools-extra/clang-tidy/tool/CMakeLists.txt
@@ -5,6 +5,9 @@ set(LLVM_LINK_COMPONENTS
add_clang_executable(clang-tidy
ClangTidyMain.cpp
)
+add_dependencies(clang-tidy
+ clang-headers
+ )
target_link_libraries(clang-tidy
clangAST
clangASTMatchers