<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div>I took a quick look into this. It would be really difficult to do. That isn't to say we shouldn't do it, just that it will be quite a bit of work, and I can't commit to it at this time.</div><div id="AppleMailSignature"><br></div><div id="AppleMailSignature">The problem is most of the lit suite targets are added through a call to "add_lit_testsuites" from AddLLVM.cmake. That function basically just searches for test suite cfg files, and adds targets. Because it is an automated glob we don't actually have fine grained dependency information for each suite.</div><div id="AppleMailSignature"><br></div><div id="AppleMailSignature">I think we can build a mechanism for getting that information, but we don't have it today.</div><div id="AppleMailSignature"><br>-Chris</div><div><br>On Mar 1, 2016, at 9:08 PM, Chris Bieneman via llvm-commits <<a href="mailto:llvm-commits@lists.llvm.org">llvm-commits@lists.llvm.org</a>> wrote:<br><br></div><blockquote type="cite"><div><meta http-equiv="content-type" content="text/html; charset=utf-8"><div></div><div>I can look into this. The problem is the lit suites don't each call out their dependencies in CMake today, so I'm not sure how easy that will be to add.</div><div><br></div><div>-Chris</div><div><br>On Mar 1, 2016, at 5:41 PM, NAKAMURA Takumi <<a href="mailto:geek4civic@gmail.com">geek4civic@gmail.com</a>> wrote:<br><br></div><blockquote type="cite"><div><div dir="ltr">Could we enhance and generalize it in add_lit_testsuite with the target like "check-*-dependent"?<br>In past, we had phony targets like "check-*.deps" and I used them.</div><br><div class="gmail_quote"><div dir="ltr">On Wed, Mar 2, 2016 at 10:35 AM Sean Silva via llvm-commits <<a href="mailto:llvm-commits@lists.llvm.org">llvm-commits@lists.llvm.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Tue, Mar 1, 2016 at 4:27 PM, Chris Bieneman via llvm-commits <span dir="ltr"><<a href="mailto:llvm-commits@lists.llvm.org" target="_blank">llvm-commits@lists.llvm.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Author: cbieneman<br>
Date: Tue Mar  1 18:27:14 2016<br>
New Revision: 262428<br>
<br>
URL: <a href="http://llvm.org/viewvc/llvm-project?rev=262428&view=rev" rel="noreferrer" target="_blank">http://llvm.org/viewvc/llvm-project?rev=262428&view=rev</a><br>
Log:<br>
[CMake] Add convenience target llvm-test-depends to build test dependencies.<br></blockquote><div><br></div></div></div></div><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div>Yes! I've been wanting this!</div></div></div></div><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
This is useful when paired with the distribution targets to build prerequisites for running tests.<br>
<br>
Modified:<br>
    llvm/trunk/test/CMakeLists.txt<br>
<br>
Modified: llvm/trunk/test/CMakeLists.txt<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CMakeLists.txt?rev=262428&r1=262427&r2=262428&view=diff" rel="noreferrer" target="_blank">http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CMakeLists.txt?rev=262428&r1=262427&r2=262428&view=diff</a><br>
==============================================================================<br>
--- llvm/trunk/test/CMakeLists.txt (original)<br>
+++ llvm/trunk/test/CMakeLists.txt Tue Mar  1 18:27:14 2016<br>
@@ -113,6 +113,8 @@ if(LLVM_BUILD_EXAMPLES)<br>
     )<br>
 endif()<br>
<br>
+add_custom_target(llvm-test-depends DEPENDS ${LLVM_TEST_DEPENDS})<br>
+<br>
 add_lit_testsuite(check-llvm "Running the LLVM regression tests"<br>
   ${CMAKE_CURRENT_BINARY_DIR}<br>
   PARAMS llvm_site_config=${CMAKE_CURRENT_BINARY_DIR}/lit.site.cfg<br>
<br>
<br>
_______________________________________________<br>
llvm-commits mailing list<br>
<a href="mailto:llvm-commits@lists.llvm.org" target="_blank">llvm-commits@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits</a><br>
</blockquote></div></div></div>
_______________________________________________<br>
llvm-commits mailing list<br>
<a href="mailto:llvm-commits@lists.llvm.org" target="_blank">llvm-commits@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits</a><br>
</blockquote></div>
</div></blockquote></div></blockquote><blockquote type="cite"><div><span>_______________________________________________</span><br><span>llvm-commits mailing list</span><br><span><a href="mailto:llvm-commits@lists.llvm.org">llvm-commits@lists.llvm.org</a></span><br><span><a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits">http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits</a></span><br></div></blockquote></body></html>