<div dir="ltr"><br><div class="gmail_extra"><div class="gmail_quote">On Wed, Jul 24, 2013 at 10:11 AM, Jeremy Huddleston Sequoia <span dir="ltr"><<a href="mailto:jeremyhu@apple.com" target="_blank">jeremyhu@apple.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I recently took a stab at changing the MacPorts llvm-3.4 port from the configure-based build system to the cmake-based build system.<br>
</blockquote><div><br></div><div>Thanks for working on this!</div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
4) Building clang using installed llvm<br>
<br>
It looks like there is some support for building clang against an installed llvm by setting CLANG_PATH_TO_LLVM_BUILD.  This fails miserably in part because the installed llvm cmake files reference build time paths, but even after fixing that, there are tons of build failures.  I'm guessing this is still a work in progress, but if I should file bugs, please let me know.</blockquote>
<div><br></div><div>This is probably not a very good idea because clang evolves in lock-step with LLVM. Unless the installed LLVM is the same revision as the clang you are building, things are likely to not work due to internal API changes. The option you cite is more likely intended for when you build clang in a directory separate from LLVM (rather than when it is in llvm/tools/clang/, where things just work) but both are still checked out at the same revision.</div>
<div><br></div><div>-- Sean Silva</div></div></div></div>