[clang] [Frontend][PCH]-Add support for ignoring PCH options (-ignore-pch). (PR #142409)

Matheus Izvekov via cfe-commits cfe-commits at lists.llvm.org
Mon Jun 2 09:13:20 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`:
----------------
mizvekov wrote:

Do we really need to have this option in the frontend?
Can't this all be implemented in the driver such that we just don't forward ignored options to the frontend?

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


More information about the cfe-commits mailing list