I feel like this kills my compile time but I'm not sure how to fix it. Precompiled headers?
I feel like this kills my compile time but I'm not sure how to fix it. Precompiled headers?
Of course the downside is that every tiny code change triggers a full rebuild then, but it's quite likely that the most time is spent in the linker anyway, so maybe worth a try.
Cmake has a feature to do that automatically during the build: https://cmake.org/cmake/help/latest/prop_tgt/UNITY_BUILD.htm...
...haven't tinkered with it yet though.
And each system should only have a single 'public interface header' to keep the number of cross-system include dependencies low.
Currently mostly usable on VC++ vlatest, and clang 17, with clang 18 bringing in support for c++23 import std (VC++ already does it).
Sadly GCC is still far behind, not to mention all the other ones still catching up with C++17.