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
1
u/mwasplund soup Jun 07 '26
This feels like incidental complexity from how existing build systems manage dependencies which may have custom definitions that are incompatible. In your examples you are allowing the producer to explicitly define it's language version and then expect the build system to dynamically override this value to match the consumer. If a system is able to capture all incompatible configurations as a global definition for the closure of dependencies then it no longer needs to worry about injecting consumer context into the provider compilation operations. The language version would then be specified in the arguments for building the specific consumer and by extension the dependency producer would be built with BMI compatible flags.