[llvm-dev] [help] How to speed up compilation?

Daniel Sanders via llvm-dev llvm-dev at lists.llvm.org
Wed Oct 19 04:00:57 PDT 2016


> On 18 Oct 2016, at 15:56, Tim Northover via llvm-dev <llvm-dev at lists.llvm.org> wrote:
> 
> On 18 October 2016 at 07:51, Renato Golin via llvm-dev
> <llvm-dev at lists.llvm.org> wrote:
>> A few hints:
> 
> Another one for debug builds on Linux is using split debug info:
> -DLLVM_USE_SPLIT_DWARF=ON. This speeds up links dramatically (and
> reduces memory consumption) as long as you've got a new enough gdb (I
> think lldb is still not quite up to it). It has no effect on macOS
> though, because a similar configuration is just how things work there.
> 
> Tim.

IIRC, ccache only learned about split dwarf fairly recently and the version on Debian stable didn't know about it. I think that the result was that ccache always gave up and called the real compiler. I remember split dwarf being the bigger win of the two but I haven't kept any numbers on it.


More information about the llvm-dev mailing list