This revision was automatically updated to reflect the committed changes. Closed by commit rGd1ca9960bc19: document -fpch-instantiate-templates in release notes (authored by llunak). Herald added a project: clang. Herald added a subscriber: cfe-commits.
Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D83622/new/ https://reviews.llvm.org/D83622 Files: clang/docs/ReleaseNotes.rst Index: clang/docs/ReleaseNotes.rst =================================================================== --- clang/docs/ReleaseNotes.rst +++ clang/docs/ReleaseNotes.rst @@ -108,6 +108,13 @@ By default, this is ~/.cache but on some platforms or installations, this might be elsewhere. The -fmodules-cache-path=... flag continues to work. +- -fpch-instantiate-templates tries to instantiate templates already while + generating a precompiled header. Such templates do not need to be + instantiated every time the precompiled header is used, which saves compile + time. This may result in an error during the precompiled header generation + if the source header file is not self-contained. This option is enabled + by default for clang-cl. + Deprecated Compiler Flags -------------------------
Index: clang/docs/ReleaseNotes.rst =================================================================== --- clang/docs/ReleaseNotes.rst +++ clang/docs/ReleaseNotes.rst @@ -108,6 +108,13 @@ By default, this is ~/.cache but on some platforms or installations, this might be elsewhere. The -fmodules-cache-path=... flag continues to work. +- -fpch-instantiate-templates tries to instantiate templates already while + generating a precompiled header. Such templates do not need to be + instantiated every time the precompiled header is used, which saves compile + time. This may result in an error during the precompiled header generation + if the source header file is not self-contained. This option is enabled + by default for clang-cl. + Deprecated Compiler Flags -------------------------
_______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits