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/not_a_novel_account cmake dev Jun 11 '26
Because if you have 15 consumers but only 3 different BMIs compatibility profiles across them you don't want to repeat work, it slows down the build.
If you can calculate BMI compatibility correctly you build the minimum set of BMIs necessary across the graph.
Also because real-world projects have many consumers insider a single project description with different BMI compatibility. You're basically say "no thanks, I don't want you to use my build system" to those users. That's a valid choice, but not for systems trying to support as broad a base as possible.