Currently, out of the box, if one were to do:<br><br>% mkdir build; cd build<br>% ~/llvm/configure [...]<br>% make check<br><br>This would break (or rather, the tests would all fail) because none of the tools have been built.  Similarly, even if you change some code, and then re-run "make check" the tools will not be rebuilt, so unless you always remember to run "make tools-only; make check", you might be testing an older version of your code.<br>
<br>Same thing happens for unittests, except they just need the libraries, so unless "make unittests" is preceded by "make libs-only", the same errors as above will occur.<br><br>The attached patch fixes that, and was tested on both Linux/x86_64 and Darwin/x86.  I'm not sure why this wasn't already done previously, so I'm asking the Makefile gurus if it's safe to commit this, or if there are any known issues that this patch will trigger.<br>
<br>Misha<br>