summaryrefslogtreecommitdiff
path: root/clang-tools-extra/test
diff options
context:
space:
mode:
authorHaojian Wu <hokein@google.com>2018-11-22 10:14:55 +0000
committerHaojian Wu <hokein@google.com>2018-11-22 10:14:55 +0000
commit2dd871b86eae7032ac91076cedef509b2d1a2508 (patch)
tree0f0e56ec35d9f4c9f48963d562ddf6e8b28fa96f /clang-tools-extra/test
parenta4bb1b48b88f626d1385c0825a586a0b8462d7b8 (diff)
Move the llvm lit test dependencies to clang-tools-extra.
Summary: Part of revert r343473 Reviewers: mgorny Subscribers: cfe-commits Differential Revision: https://reviews.llvm.org/D54798
Diffstat (limited to 'clang-tools-extra/test')
-rw-r--r--clang-tools-extra/test/CMakeLists.txt11
1 files changed, 11 insertions, 0 deletions
diff --git a/clang-tools-extra/test/CMakeLists.txt b/clang-tools-extra/test/CMakeLists.txt
index af11b26c135..451c181fdf0 100644
--- a/clang-tools-extra/test/CMakeLists.txt
+++ b/clang-tools-extra/test/CMakeLists.txt
@@ -71,6 +71,17 @@ set(CLANGD_TEST_DEPS
clangd-indexer
dexp
)
+
+# Add lit test dependencies.
+set(LLVM_UTILS_DEPS
+ FileCheck count not
+)
+foreach(dep ${LLVM_UTILS_DEPS})
+ if(TARGET ${dep})
+ list(APPEND CLANGD_TEST_DEPS ${dep})
+ endif()
+endforeach()
+
foreach(clangd_dep ${CLANGD_TEST_DEPS})
list(APPEND CLANG_TOOLS_TEST_DEPS
${clangd_dep})