r/cpp • u/not_a_novel_account cmake dev • Jun 01 '26
BMI Compatibility: Testing Build System C++ Modules Support
https://blog.vito.nyc/posts/bmi-compatibility/
68
Upvotes
r/cpp • u/not_a_novel_account cmake dev • Jun 01 '26
View all comments
Show parent comment
1
u/mwasplund soup Jun 07 '26 edited Jun 07 '26
Oh I was not aware of modules manifest, thanks for the pointer.
Yes, but this is one of the major selling points of Modules to me. You no longer need to worry (as much) about your compilation flags leaking into the headers for the dependencies you consume. C interop is going to continue to be open to the possiblity that consumer builds leak into the producer library definitions, however we now have a mechanism in C++ to enforce a single directional dependency hierarchy. It feels like we are reintroducing consumer alterations to producer library pain simply because we are trying to prevent generating compatible versions up front (which feels like a solvable problem).
My original point was simply that your definition for "build system that fully supports modules" was working off an assumption that all build system must rely on consumer dictated producer compilation strategy. This is not the only approach to take, and I would argue that a system that does not rely on this bidirectional flow does not have the same requirements to have "full modules support".