<div dir="ltr"><div dir="ltr">I accidentally ran into a scenario where I saw a similar effect. <a href="https://reviews.llvm.org/D55842">https://reviews.llvm.org/D55842</a> is a reland with a fix for the issue I was seeing locally. I don't know if it's what was happening on your end though. Could you check if that new version works better for you?</div></div><br><div class="gmail_quote"><div dir="ltr">On Tue, May 29, 2018 at 11:41 PM Dean Michael Berris <<a href="mailto:dberris@google.com">dberris@google.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">No, I've been doing:<div><br></div><div>ninja all check-all</div><div><br></div><div>or</div><div><br></div><div>ninja all check-xray</div><div><br></div><div>Versions:</div><div><br></div><div><div>cmake version 3.9.0</div></div><div>ninja 1.8.2</div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr">On Wed, May 30, 2018 at 10:41 AM Nico Weber <<a href="mailto:thakis@chromium.org" target="_blank">thakis@chromium.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">That looks reasonably similar to what I have. To confirm, you're basically doing `ninja llc` and then `ninja llc` again and you see compiles happening on the 2nd build?<div><br></div><div>What's your `ninja --version`? What happens if you pass `-d explain` to the 2nd build? What's your cmake version?</div><div><br></div><div>(Works fine for me with ninja 1.8.2, cmake 3.6.0-rc3)</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, May 29, 2018 at 8:13 PM, Dean Michael Berris <span dir="ltr"><<a href="mailto:dberris@google.com" target="_blank">dberris@google.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi Nico,<div><br></div><div>My last cmake build in my zsh history looks like:<br></div><div><br></div><div><div>cmake -GNinja -DLLVM_ENABLE_PROJECTS='clang;compiler-rt' -DCMAKE_C_COMPILER=clang-5.0 -DCMAKE_CXX_COMPILER=clang++-5.0 -DCMAKE_BUILD_TYPE=RelWithDebInfo -DLLVM_USE_SPLIT_DWARF=On -DLLVM_ENABLE_ASSERTIONS=On -DLLVM_USE_LINKER=lld -DCOMPILER_RT_INCLUDE_TESTS=On -DLLVM_ENABLE_SPHINX=On -DSPHINX_WARNINGS_AS_ERRORS=On -DCMAKE_CXX_COMPILER_LAUNCHER=ccache -DC</div><div>MAKE_EXPORT_COMPILE_COMMANDS=ON ../llvm-project/llvm</div></div><div><br></div><div>I don't necessarily think there's anything special here other than, I'm using the monorepo:</div><div><br></div><div><a href="http://llvm.org/docs/GettingStarted.html#for-developers-to-work-with-a-git-monorepo" target="_blank">http://llvm.org/docs/GettingStarted.html#for-developers-to-work-with-a-git-monorepo</a></div><div><br></div><div>Cheers</div></div><div class="gmail-m_1760437019219494830m_9021648378816609972gmail-HOEnZb"><div class="gmail-m_1760437019219494830m_9021648378816609972gmail-h5"><br><div class="gmail_quote"><div dir="ltr">On Wed, May 30, 2018 at 5:34 AM Nico Weber <<a href="mailto:thakis@chromium.org" target="_blank">thakis@chromium.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi Dean and Tim,<div><br></div><div>I'm not subscribed to llvm-commits, so I didn't see your comments re r330742 until just now, apologies. (Thanks to Chandler for reverting in the meantime!)</div><div><br></div><div>I didn't see this behavior locally, so I'd like to request some more information. Which cmake generator are you using? Can you maybe post the exact cmake and build commands you use to build llvm?</div><div><br></div><div>Thanks,</div><div>Nico</div></div>
</blockquote></div>
</div></div></blockquote></div><br></div>
</blockquote></div>
</blockquote></div>