Some update for Server.

This commit is contained in:
ykiko
2024-11-24 17:15:02 +08:00
parent 37ab1341df
commit 633db416e6
5 changed files with 540 additions and 403 deletions

View File

@@ -46,7 +46,7 @@ bool Compiler::applyPCH(llvm::StringRef filepath, std::uint32_t bound, bool endA
auto& preproc = instance->getPreprocessorOpts();
preproc.UsePredefines = false;
preproc.ImplicitPCHInclude = filepath;
preproc.PrecompiledPreambleBytes.first = bound;
preproc.PrecompiledPreambleBytes.first = {};
preproc.PrecompiledPreambleBytes.second = endAtStart;
preproc.DisablePCHOrModuleValidation = clang::DisableValidationForModuleKind::PCH;
return true;