Why re-compile clang with clang?

Hi,

I noticed here - https://clang.llvm.org/docs/LibASTMatchersTutorial.html#step-0-obtaining-clang that it is recommended to recompile clang after building it for the first time with itself. Why is that required?

Thanks,

Not a requirement, but a suggestion - generally clang/llvm are optimized best with themselves. So it’s generally considered the “optimal” setup.

Thanks! :slight_smile: