hokein created this revision. hokein added a reviewer: sammccall. Herald added subscribers: kadircet, ioeric, ilya-biryukov, mgorny.
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`). Repository: rC Clang https://reviews.llvm.org/D52714 Files: cmake/modules/AddClang.cmake Index: cmake/modules/AddClang.cmake =================================================================== --- cmake/modules/AddClang.cmake +++ cmake/modules/AddClang.cmake @@ -131,6 +131,7 @@ endif() add_clang_executable(${name} ${ARGN}) + add_dependencies(${name} clang-headers) if (CLANG_BUILD_TOOLS) if(${name} IN_LIST LLVM_DISTRIBUTION_COMPONENTS OR
Index: cmake/modules/AddClang.cmake =================================================================== --- cmake/modules/AddClang.cmake +++ cmake/modules/AddClang.cmake @@ -131,6 +131,7 @@ endif() add_clang_executable(${name} ${ARGN}) + add_dependencies(${name} clang-headers) if (CLANG_BUILD_TOOLS) if(${name} IN_LIST LLVM_DISTRIBUTION_COMPONENTS OR
_______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits