<div dir="ltr">It's typically a big performance improvement to leverage ccache and to use lld as the linker.<div><br></div><div>See "LLVM_ENABLE_LLD" and "LLVM_CCACHE_BUILD"  in <a href="https://llvm.org/docs/CMake.html#llvm-specific-variables">https://llvm.org/docs/CMake.html#llvm-specific-variables</a></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Aug 23, 2020 at 1:12 PM Anshil Gandhi via cfe-dev <<a href="mailto:cfe-dev@lists.llvm.org">cfe-dev@lists.llvm.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"><div>Hi,</div><div><br></div><div>What is the fastest way to build clang from source? Currently I am using the following:<br><br>```<br></div><div>cmake -DLLVM_ENABLE_PROJECTS="clang" -G "Ninja" ../llvm<br></div><div>ninja<br></div><div>```</div><div><br></div><div>Kindly,</div><div><br></div><div>Anshil<br></div></div>
_______________________________________________<br>
cfe-dev mailing list<br>
<a href="mailto:cfe-dev@lists.llvm.org" target="_blank">cfe-dev@lists.llvm.org</a><br>
<a href="https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev" rel="noreferrer" target="_blank">https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev</a><br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature">-Brian</div>