News for hackers. Stuff that matters.
Re:How to build highly-debuggable C++ binaries by binary132 on Monday July 29, 2024 @03:09PM (#41102864)
I particularly liked the point that not every TU needs to be compiled in debug mode. I am working on a build system and now I’m thinking of setting aside some time to make sure debug and optimization is an object level option. In general, I think the usefulness of a well specified ABI over object code is vastly underappreciated!
Re:How to build highly-debuggable C++ binaries by trentnelson on Tuesday July 30, 2024 @12:54PM (#41111331)
I like the idea of hacking the crap out of `compile_commands.json` and subverting it for your evil machinations outside of the normal build process. Such a hideously pragmatic tip.
Re:How to build highly-debuggable C++ binaries by binary132 on Tuesday July 30, 2024 @04:22PM (#41113736)
Duh, just alias clang to a script that replaces its debug option and invokes clang, but only for the files you want