3 ms·
> I just pray that modules will one day let developers speed up compile times. Compiles times are not a problem if you use adequate tools. I have a codebase th
by jcelerier 6y ago
> I just pray that modules will one day let developers speed up compile times.
Compiles times are not a problem if you use adequate tools.
I have a codebase that heavily uses some large libs such as boost and Qt, here's a video of the edit-compile-run cycle:
https://streamable.com/o2g765 https://streamable.com/o2g765
compilation when editing a file takes one-two seconds (measured it at 101 frames in the video in this case, so a bit less than 2 seconds).
If anyone's wondering how it's done:
- Clang & lld instead of GCC & bfd/gold
- Ninja instead of Make (or anything else really)
- CMake target_precompile_headers
- Code split in dynamic libraries for dev builds
There aren't even advanced tricks such as incremental linking mentioned by other comments.