diff options
| author | Nico Weber <nicolasweber@gmx.de> | 2016-07-07 13:19:45 +0000 |
|---|---|---|
| committer | Nico Weber <nicolasweber@gmx.de> | 2016-07-07 13:19:45 +0000 |
| commit | 1e348b339c93a9510b624cb40bcd6b2d6884201b (patch) | |
| tree | b0728fc4f29d55b53453795e632a1d58986f60e6 /clang-tools-extra/clang-tidy/tool | |
| parent | b3b972a5a8fa8095713721dc0f52fc045a75dc95 (diff) | |
| download | bcm5719-llvm-1e348b339c93a9510b624cb40bcd6b2d6884201b.tar.gz bcm5719-llvm-1e348b339c93a9510b624cb40bcd6b2d6884201b.zip | |
[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
Diffstat (limited to 'clang-tools-extra/clang-tidy/tool')
| -rw-r--r-- | clang-tools-extra/clang-tidy/tool/CMakeLists.txt | 3 |
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 766da71d776..45ec7982e31 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 |

