r/cpp • • Sep 09 '26

C++26: Module improvements

https://www.sandordargo.com/blog/2026/09/09/cpp26-modules
113 Upvotes

25 comments sorted by

View all comments

Show parent comment

2

u/mapronV Sep 09 '26

"both module dependency scanners"
my question was, aren't dependency scanners rely on compiler anyway? at least what I seen before, maybe my knowledge is dated

Well, I believed it is already an expensive task. Will build system developers update/optimize it now? I don't think so.

14

u/Daniela-E Living on C++ trunk, WG21 |🇩🇪 NB Sep 09 '26

The scanning can be done as an additional mode of operation for compilers (e.g. MSVC), or implemented by an executable separate from the compiler (e.g. Clang). Implementations choose their most beneficial way of performing dependency scanning.

1

u/mapronV Sep 09 '26

Thanks, you were convincing. I agree.

4

u/kronicum Sep 09 '26

my question was, aren't dependency scanners rely on compiler anyway?

The answer is "no".