3 ms·
I think I've heard this called a Unity build where there's a precompile step that just dumps everything into a single file and compiles that so it doesn't have
by runevault 2y ago
I think I've heard this called a Unity build where there's a precompile step that just dumps everything into a single file and compiles that so it doesn't have to re-include everything at different compilation units (when I first heard the term I got confused because it was in a game dev context but had nothing to do with the Unity engine lol).
- flohofwoe 2y agoYes, it's typically called unity or jumbo build, and can also be done with regular source files. Cmake has a feature to do that automatically during the build: https://cmake.org/cmake/help/latest/prop_tgt/UNITY_BUILD.html https://cmake.org/cmake/help/latest/prop_tgt/UNITY_BUILD.htm... ...haven't tinkered with it yet though.
- runevault 2y agoHuh did not know cmake had it built in. Thanks for the information!