[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 07:02:40 PDT 2018


This revision was automatically updated to reflect the committed changes.
Closed by commit rL343473: Move llvm util dependencies from clang-tools-extra to add_lit_target. (authored by hokein, committed by ).

Repository:
  rL LLVM

https://reviews.llvm.org/D52713

Files:
  llvm/trunk/cmake/modules/AddLLVM.cmake


Index: llvm/trunk/cmake/modules/AddLLVM.cmake
===================================================================
--- llvm/trunk/cmake/modules/AddLLVM.cmake
+++ llvm/trunk/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.167729.patch
Type: text/x-patch
Size: 662 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20181001/3450e86d/attachment.bin>


More information about the cfe-commits mailing list