r/cpp • soup • Mar 10 '26

Dynamic Modules

https://mwasplund.github.io/blog/2026/03/09/dynamic-modules
8 Upvotes

23 comments sorted by

View all comments

Show parent comment

3

u/not_a_novel_account cmake dev Mar 11 '26

The scanner produces the source file dependency output directly, the preprocessing and scanning are a single process without any intermediate artifacts. build2-style preprocesses, writes the entire preprocessed source file to disk, then scans that again. It's just more steps and expensive file IO.