[llvm-dev] Can I build llvm with only a handful of source files compiled for debug?

David Blaikie via llvm-dev llvm-dev at lists.llvm.org
Wed Aug 14 11:51:57 PDT 2019


Nothing supported, though might not be too hard to do by hand.

If you're having long link times, lots of disk usage, and slow gdb startup
time I'd recommend enabling split DWARF (LLVM_USE_SPLIT_DWARF=ON,
and CMAKE_EXE_LINKER_FLAGS_*=-Wl,-gdb-index in cmake) if you haven't
already.

On Wed, Aug 14, 2019 at 11:40 AM Robert Henry via llvm-dev <
llvm-dev at lists.llvm.org> wrote:

> In order to minimize edit/compile/debug turn time, is there a way to
> compile llvm tools so that the majority of the files are compiled as if for
> release (eg, no debug symbols), and only the handful of files that I have
> touched are compiled for debugging? This will reduce the load on the file
> system, linker and gdb tremendously.  At present, AFAICT, it's all or
> nothing.
> _______________________________________________
> LLVM Developers mailing list
> llvm-dev at lists.llvm.org
> https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20190814/a5a2c3b0/attachment.html>


More information about the llvm-dev mailing list