[cfe-dev] Building clang

Brian Cain via cfe-dev cfe-dev at lists.llvm.org
Sun Aug 23 11:21:30 PDT 2020


It's typically a big performance improvement to leverage ccache and to use
lld as the linker.

See "LLVM_ENABLE_LLD" and "LLVM_CCACHE_BUILD"  in
https://llvm.org/docs/CMake.html#llvm-specific-variables

On Sun, Aug 23, 2020 at 1:12 PM Anshil Gandhi via cfe-dev <
cfe-dev at lists.llvm.org> wrote:

> Hi,
>
> What is the fastest way to build clang from source? Currently I am using
> the following:
>
> ```
> cmake -DLLVM_ENABLE_PROJECTS="clang" -G "Ninja" ../llvm
> ninja
> ```
>
> Kindly,
>
> Anshil
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at lists.llvm.org
> https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev
>


-- 
-Brian
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20200823/bafa8431/attachment.html>


More information about the cfe-dev mailing list