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

Daniel Sanders via llvm-dev llvm-dev at lists.llvm.org
Wed Aug 14 13:14:27 PDT 2019


Clang has a way to achieve this. Once you've built LLVM without debug info, you can then delete the objects or modify the sources you want to debug and then rebuild with something like 'CCC_OVERRIDE_OPTIONS="+-g +-O0" ninja'. The newly built files will have debug info.

> On Aug 14, 2019, at 11:40, 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 <mailto:llvm-dev at lists.llvm.org>
> https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev <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/b5ce16b8/attachment.html>


More information about the llvm-dev mailing list