[flang-commits] [flang] [flang] Use precompiled parsing headers (PR #130600)

Kajetan Puchalski via flang-commits flang-commits at lists.llvm.org
Mon Mar 10 07:40:22 PDT 2025


mrkajetanp wrote:

> I often try to compile individual files by hand when I'm dealing with compilation issues to save time. Fixing these issues may require changing headers

I gave it try, as it stands now this still works completely fine. You can just drop the `pch` includes from the compile command for a given TU and it'll pull in the headers normally as before. Slower to compile but won't break.
Clang is pretty good with this too, so even if you forget to drop it but change the header that was being precompiled clang will let you know that the precompiled header needs to be rebuilt because the source has changed.

https://github.com/llvm/llvm-project/pull/130600


More information about the flang-commits mailing list