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 08 '26
Yes, I agree that flags must be allowed to be different between BMI creation and consumption.
It feels like we are effectively saying the same thing from conceptual level for producing and consuming shared libraries. The only difference for my approach is that the producer must be explicitly configured during build invocation which then ensures compatibility for the specific consumer. This would require separate invocations for each consumer with the unique configurations (ie std23 vs std26), but the build system would not need to reason about two variants of the same producer in a single closure.