Skip to content

Commit 71670be

Browse files
committed
Move llvm util dependencies from clang-tools-extra to add_lit_target.
Summary: Address fixme in r301762. And would simplify the cmake file in clang-tools-extra. Reviewers: sammccall Subscribers: mgorny, llvm-commits, cfe-commits Differential Revision: https://reviews.llvm.org/D52713 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@343473 91177308-0d34-0410-b5e6-96231b3b80d8
1 parent eab58e0 commit 71670be

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

cmake/modules/AddLLVM.cmake

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1367,6 +1367,17 @@ function(add_lit_target target comment)
13671367
COMMAND ${CMAKE_COMMAND} -E echo "${target} does nothing, no tools built.")
13681368
message(STATUS "${target} does nothing.")
13691369
endif()
1370+
1371+
# Add lit test dependencies.
1372+
set(llvm_utils_deps
1373+
FileCheck count not
1374+
)
1375+
foreach(dep ${llvm_utils_deps})
1376+
if (TARGET ${dep})
1377+
add_dependencies(${target} ${dep})
1378+
endif()
1379+
endforeach()
1380+
13701381
if (ARG_DEPENDS)
13711382
add_dependencies(${target} ${ARG_DEPENDS})
13721383
endif()

0 commit comments

Comments
 (0)