r/cpp • cmake dev • Jun 01 '26

BMI Compatibility: Testing Build System C++ Modules Support

https://blog.vito.nyc/posts/bmi-compatibility/
68 Upvotes

43 comments sorted by

View all comments

Show parent comment

7

u/not_a_novel_account cmake dev Jun 01 '26

Works fine on clang/clang-scan-deps (not the BMI compatibility, still fails there, but the "Hello World") which anecdotally is what 99% of bazel users are concerned with. I didn't check MSVC.

2

u/PunctuationGood Jun 01 '26

Aaah, right, OK. Sorry if I missed that info in your article.

6

u/not_a_novel_account cmake dev Jun 01 '26

I didn't discuss the compilers tested, I'll add a footnote. I didn't want this to be about compiler minutia, but Bazel just not working at all on GCC was too big of a blind spot to leave unmentioned.

0

u/Agitated-Elk5768 Jun 02 '26

MSVC does not generate a compatibility version within the same project for compatibility purposes. If two incompatible variants are mixed in the same project, it may fail, or it may only emit a warning.

3

u/not_a_novel_account cmake dev Jun 02 '26 edited Jun 02 '26

The question here (or rather, the thing I didn't test) is if Bazel invokes the MSVC compiler correctly, cl.exe. Not about Visual Studio or its use of MSVC.