r/cpp • u/holyblackcat • Mar 09 '26
The compilation procedure for C++20 modules
https://holyblackcat.github.io/blog/2026/03/09/compiling-modules.html
103
Upvotes
r/cpp • u/holyblackcat • Mar 09 '26
View all comments
Show parent comment
2
u/slithering3897 Mar 09 '26
If you edit a partition, the module interface will be rebuilt. And then, all importers will need to be rebuilt.
As far as I can see, one single monolithic module (that you import) is for external libs. Like
std.For a project split up into internal DLLs, I do not want every change in a DLL to require everything in the application to be rebuilt.
So, I wanted multiple modules to a DLL just like you'd have multiple include files. And that's how I ran into this bug.