diff --git a/src/clang_tu.cc b/src/clang_tu.cc index 74bea9b5..0944547f 100644 --- a/src/clang_tu.cc +++ b/src/clang_tu.cc @@ -159,6 +159,9 @@ buildCompilerInvocation(const std::string &main, std::vector args, auto &isec = ci->getFrontendOpts().Inputs; if (isec.size()) isec[0] = FrontendInputFile(main, isec[0].getKind(), isec[0].isSystem()); +#if LLVM_VERSION_MAJOR >= 10 // llvmorg-11-init-2414-g75f09b54429 + ci->getPreprocessorOpts().DisablePragmaDebugCrash = true; +#endif // clangSerialization has an unstable format. Disable PCH reading/writing // to work around PCH mismatch problems. ci->getPreprocessorOpts().ImplicitPCHInclude.clear();