News for hackers. Stuff that matters.
Re:Trying out C++20's modules with Clang and Make by bluGill on Sunday October 15, 2023 @01:34PM (#37891689)
Unitit builds where you do include everything exists. They have pros and cons.
Re:Trying out C++20's modules with Clang and Make by Conscat on Sunday October 15, 2023 @02:43PM (#37892225)
I've never heard of unity builds including everything together. I'm not aware of a build system which even does that by default. If you enable unity in CMake, it groups batches of 5 files together by default, and the documentation discourages users from including everything in a single translation unit.
Re:Trying out C++20's modules with Clang and Make by knome on Sunday October 15, 2023 @08:08PM (#37894590)
sqlite calls it an amalgamation build. Whole program building certainly exists. It doesn't explain where the quoted poster got the idea that headers were intended to save space rather than allow for independent compilation.