The script was never intended to be run manually. Its interface is rather inconvenient for this. If you need to run a single test, it's easier to do using llvm-lit (`path/to/lit test/file.cpp`). But if you for some reason want to run the script directly, it should be possible to just modify PATH or switch to the bin directory of the build. I don't think this flag is needed.<div class="gmail_extra"><br><div class="gmail_quote">On Aug 13, 2016 21:14, "Zachary Turner" <<a href="mailto:zturner@google.com">zturner@google.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I was trying to rerun the lit commands manually to diagnose a failing test.  This all works fine from lit, but if you want to run check_clang_tidy.py from the command line, this is convenient <br><div class="gmail_quote"><div dir="ltr">On Sat, Aug 13, 2016 at 10:27 AM Alexander Kornienko <<a href="mailto:alexfh@google.com" target="_blank">alexfh@google.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">alexfh added a comment.<br>
<br>
Why is this change needed? What exactly doesn't work without it? I think, lit should take care of setting paths or changing directories appropriately.<br>
<br>
<br>
<a href="https://reviews.llvm.org/D23476" rel="noreferrer" target="_blank">https://reviews.llvm.org/<wbr>D23476</a><br>
<br>
<br>
<br>
</blockquote></div>
</blockquote></div></div>