[clang] [Frontend][PCH]-Add support for ignoring PCH options (-ignore-pch). (PR #142409)
via cfe-commits
cfe-commits at lists.llvm.org
Mon Jun 2 09:51:32 PDT 2025
================
@@ -31,6 +31,16 @@ option:
$ clang -cc1 -include-pch test.h.pch test.c -o test.s
+To ignore PCH options using ``clang -cc1``, use the option `-ignore-pch`:
----------------
MaggieYingYi wrote:
I added `-ignore-pch` option followed the same way as `-emit-pch`. `-emit-pch` is CC1Option and is only visible to compiler frontend (`clang -cc1`). Since `-emit-pch` is only visible to compiler frontend, I added `-ignore-pch` option as CC1Option.
https://github.com/llvm/llvm-project/pull/142409
More information about the cfe-commits
mailing list