[PATCH] D52713: Move llvm util dependencies from clang-tools-extra to add_lit_target.
Haojian Wu via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Oct 1 03:17:22 PDT 2018
hokein created this revision.
hokein added a reviewer: sammccall.
Herald added subscribers: llvm-commits, mgorny.
Address fixme in r301762. And would simplify the cmake file in
clang-tools-extra.
Repository:
rL LLVM
https://reviews.llvm.org/D52713
Files:
cmake/modules/AddLLVM.cmake
Index: cmake/modules/AddLLVM.cmake
===================================================================
--- cmake/modules/AddLLVM.cmake
+++ cmake/modules/AddLLVM.cmake
@@ -1367,6 +1367,17 @@
COMMAND ${CMAKE_COMMAND} -E echo "${target} does nothing, no tools built.")
message(STATUS "${target} does nothing.")
endif()
+
+ # Add lit test dependencies.
+ set(llvm_utils_deps
+ FileCheck count not
+ )
+ foreach(dep ${llvm_utils_deps})
+ if (TARGET ${dep})
+ add_dependencies(${target} ${dep})
+ endif()
+ endforeach()
+
if (ARG_DEPENDS)
add_dependencies(${target} ${ARG_DEPENDS})
endif()
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D52713.167690.patch
Type: text/x-patch
Size: 629 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20181001/3dea6a9c/attachment.bin>
More information about the cfe-commits
mailing list