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/Agitated-Elk5768 Jun 02 '26
I tried your test on my build system. It failed in the fully automatic scanning mode, but I kept a semi-manual mode: direct dependencies must be specified explicitly, while indirect dependencies can still be resolved automatically. With that setup, everything works fine.
The root cause of all these issues seems to be the automation requirement itself.
What concerns me most right now is that clangd holds onto PCM files. I've already worked around some cases by renaming the files, but sometimes even renaming fails, and the only solution is to restart clangd. If I'm lucky, the build succeeds without problems. But even then, clangd has to be restarted to load the updated PCM files.