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
3
u/not_a_novel_account cmake dev Jun 02 '26 edited Jun 02 '26
There are environments which will tolerate manually enumerating these sorts of details, but not the ones I work on. Manually wiring module discovery, and enumerating targets for each BMI compatibility category, doesn't scale.
Getting scanning and BMI compat working is not trivial, but CMake had the correct framework in place from its initial implementation and Xmake had the whole thing working on its first at bat. If you go back in the discourse discussions, issue trackers, and the like, this was a known part of implementing modules all the way back in 2018. /u/mathstuf went on a little build system pilgrimage opening issues and trying to get everyone on the same page.
Bazel dropping the ball was genuinely surprising to me. This began because I saw a lot of build systems claiming support, and figured at least some had missed the memo (and I knew build2 hadn't implemented compat yet). I was genuinely surprised it was only the two systems I already knew worked.