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

via cfe-commits cfe-commits at lists.llvm.org
Thu Jun 5 04:23:55 PDT 2025


================
@@ -3348,6 +3348,9 @@ defm pch_codegen: OptInCC1FFlag<"pch-codegen", "Generate ", "Do not generate ",
   "code for uses of this PCH that assumes an explicit object file will be built for the PCH">;
 defm pch_debuginfo: OptInCC1FFlag<"pch-debuginfo", "Generate ", "Do not generate ",
   "debug info for types in an object file built from this PCH and do not generate them elsewhere">;
+def ignore_pch : Flag<["-"], "ignore-pch">, Group<f_Group>,
+  Visibility<[ClangOption, CC1Option]>,
----------------
MaggieYingYi wrote:

Thanks, fixed in the commit https://github.com/MaggieYingYi/llvm-project/commit/8dff812d140fefcda2ff9eb0cbd4aa5b323d7643.

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


More information about the cfe-commits mailing list