diff options
author | Haojian Wu <hokein@google.com> | 2018-10-01 12:16:38 +0000 |
---|---|---|
committer | Haojian Wu <hokein@google.com> | 2018-10-01 12:16:38 +0000 |
commit | a0c469ac4d42afba6f5c5f285b9d8da26833761b (patch) | |
tree | 9404243e45a0ed6c798239e69d7970ed76302ba4 /cmake | |
parent | 0edd965d5cf9b72e7377ad985c0508c1b87c811c (diff) |
Build clang-headers when building clang tools.
Summary:
clang tools require clang headers to work on real project, e.g. when we
build clangd via `ninja clangd`, we expect the binary can run on
real-world project (without running another command `ninja clang-headers`).
Reviewers: sammccall
Reviewed By: sammccall
Subscribers: mgorny, ilya-biryukov, ioeric, kadircet, cfe-commits
Differential Revision: https://reviews.llvm.org/D52714
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@343459 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/modules/AddClang.cmake | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/cmake/modules/AddClang.cmake b/cmake/modules/AddClang.cmake index c09a8423f9..7e22f16f36 100644 --- a/cmake/modules/AddClang.cmake +++ b/cmake/modules/AddClang.cmake @@ -131,6 +131,7 @@ macro(add_clang_tool name) endif() add_clang_executable(${name} ${ARGN}) + add_dependencies(${name} clang-headers) if (CLANG_BUILD_TOOLS) if(${name} IN_LIST LLVM_DISTRIBUTION_COMPONENTS OR |