[LLVMdev] workflow for linking clang

Richard Mitton richard at codersnotes.com
Fri Aug 16 14:20:58 PDT 2013


I find I get the fastest build time by:

a) use CMake+ninja to build, rather than make
b) just do 'ninja clang' to build only the component you want, rather 
than all of llvm
c) change your system linker to ld.gold rather than ld.bfd

Richard Mitton
richard at codersnotes.com

On 08/16/2013 02:13 PM, Eli Friedman wrote:
> On Fri, Aug 16, 2013 at 2:01 PM, reed kotler <rkotler at mips.com 
> <mailto:rkotler at mips.com>> wrote:
>
>     the good news is that (thanks to Simon) the clang driver is
>     working so well for Mips now that we are more or less switching
>     away from using llc during development for all our various
>     host/target configurations.
>
>     the bad news is that we have make clang all the time and it is
>     really slow to do that.
>
>     we used to be able to just make in the lib/target/Mips and then in
>     llc and it was really fast.
>
>     part of it is probably that we have all this debug information
>     that we don't need because none of use are working on clang itself
>     (well, almost never).
>
>     ideas?
>
>     for 99% of our changes we are just editting files in libc/target/Mips
>
>     what is the fastest way to get a new clang complete compiler after
>     that?
>
>
> What exactly is slow?  I mean, if you're worried about build system 
> overhead, if you haven't made any changes to clang, you can run "make" 
> in clang/tools/driver/ .  If the issue is really the debug info, I'm 
> not sure what I can suggest...
>
> -Eli
>
>
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20130816/b38c3195/attachment.html>


More information about the llvm-dev mailing list