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
100
Upvotes
r/cpp • u/holyblackcat • Mar 09 '26
View all comments
Show parent comment
3
u/not_a_novel_account cmake dev Mar 09 '26 edited Mar 09 '26
Yes, CMake uses
-internalPartitionwhen building non-interface module units.The thing we've created is an implementation unit for an interface named
partition.impl. We don't actually create or usepartition.implanywhere explicitly, because it doesn't export anything. This is entirely the problem.