diff --git a/clang/lib/Frontend/PrecompiledPreamble.cpp b/clang/lib/Frontend/PrecompiledPreamble.cpp index d5aab4aedadd6b..e3c34665504926 100644 --- a/clang/lib/Frontend/PrecompiledPreamble.cpp +++ b/clang/lib/Frontend/PrecompiledPreamble.cpp @@ -765,6 +765,10 @@ void PrecompiledPreamble::configurePreamble( PreprocessorOpts.DisablePCHOrModuleValidation = DisableValidationForModuleKind::PCH; + // Don't bother generating the long version of the predefines buffer. + // The preamble is going to overwrite it anyway. + PreprocessorOpts.UsePredefines = false; + setupPreambleStorage(*Storage, PreprocessorOpts, VFS); }