<div dir="ltr">I'm unable to reproduce this.  Can you try nuking your output directory and doing a clean build? (re-generate cmake from scratch into an empty directory)<div><br></div><div>The only difference between our layouts I can see is that I don't have compiler-rt checked out, but that shouldn't matter because your first error involves a dependency from check-all -> lld, and that shouldn't have anything to do with whether compiler-rt is checked out</div></div><br><div class="gmail_quote"><div dir="ltr">On Wed, Sep 13, 2017 at 8:45 AM Zachary Turner <<a href="mailto:zturner@google.com">zturner@google.com</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">I'm looking into this right now.</div><br><div class="gmail_quote"><div dir="ltr">On Wed, Sep 13, 2017 at 2:45 AM Philip Douglas via Phabricator <<a href="mailto:reviews@reviews.llvm.org" target="_blank">reviews@reviews.llvm.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">pdouglas added a comment.<br>
<br>
Hi, since this change we're seeing a Cmake error (see below) when we run it with -DLLVM_TOOL_LLD_BUILD=OFF but with tools/lld checked out. If either that argument isn't passed or the lld directory isn't present, it runs fine.<br>
<br>
  -- Configuring done<br>
  CMake Error at cmake/modules/AddLLVM.cmake:1241 (add_dependencies):<br>
    The dependency target "lld" of target "check-all" does not exist.<br>
  Call Stack (most recent call first):<br>
    CMakeLists.txt:933 (add_lit_target)<br>
<br>
<br>
  CMake Error at cmake/modules/AddLLVM.cmake:1241 (add_dependencies):<br>
    The dependency target "lld" of target "check-cfi" does not exist.<br>
  Call Stack (most recent call first):<br>
    cmake/modules/AddLLVM.cmake:1262 (add_lit_target)<br>
    projects/compiler-rt/test/cfi/CMakeLists.txt:80 (add_lit_testsuite)<br>
<br>
<br>
  CMake Error at cmake/modules/AddLLVM.cmake:1241 (add_dependencies):<br>
    The dependency target "lld" of target "check-cfi-and-supported" does not<br>
    exist.<br>
  Call Stack (most recent call first):<br>
    projects/compiler-rt/test/cfi/CMakeLists.txt:84 (add_lit_target)<br>
<br>
<br>
  CMake Error at cmake/modules/AddLLVM.cmake:1241 (add_dependencies):<br>
    The dependency target "lld" of target "check-asan" does not exist.<br>
  Call Stack (most recent call first):<br>
    cmake/modules/AddLLVM.cmake:1262 (add_lit_target)<br>
    projects/compiler-rt/test/asan/CMakeLists.txt:161 (add_lit_testsuite)<br>
<br>
<br>
  CMake Error at cmake/modules/AddLLVM.cmake:1241 (add_dependencies):<br>
    The dependency target "lld" of target "check-asan-dynamic" does not exist.<br>
  Call Stack (most recent call first):<br>
    cmake/modules/AddLLVM.cmake:1262 (add_lit_target)<br>
    projects/compiler-rt/test/asan/CMakeLists.txt:167 (add_lit_testsuite)<br>
<br>
<br>
Repository:<br>
  rL LLVM<br>
<br>
<a href="https://reviews.llvm.org/D37637" rel="noreferrer" target="_blank">https://reviews.llvm.org/D37637</a><br>
<br>
<br>
<br>
</blockquote></div></blockquote></div>