Skip to content

Commit

Permalink
Disable -include b.hh => -include b.hh.{gch,pch} transition
Browse files Browse the repository at this point in the history
  • Loading branch information
MaskRay committed Jul 17, 2023
1 parent ba38e13 commit ee2d4f5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/clang_tu.cc
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,10 @@ buildCompilerInvocation(const std::string &main, std::vector<const char *> args,
driver::Driver d(args[0], llvm::sys::getDefaultTargetTriple(), *diags, "ccls", vfs);
#endif
d.setCheckInputsExist(false);
#if LLVM_VERSION_MAJOR >= 15
// For -include b.hh, don't probe b.hh.{gch,pch} and change to -include-pch.
d.setProbePrecompiled(false);
#endif
std::unique_ptr<driver::Compilation> comp(d.BuildCompilation(args));
if (!comp)
return nullptr;
Expand Down

0 comments on commit ee2d4f5

Please sign in to comment.