Skip to content

Commit

Permalink
[clangd] Fix buildbots without grpc enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
kadircet committed Mar 11, 2021
1 parent 4f1bbc0 commit cec62ae
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions clang-tools-extra/clangd/tool/ClangdMain.cpp
Expand Up @@ -609,6 +609,7 @@ class FlagsConfigProvider : public config::Provider {
Spec.Location = IndexFile;
IndexSpec = std::move(Spec);
}
#if CLANGD_ENABLE_REMOTE
if (!RemoteIndexAddress.empty()) {
assert(!ProjectRoot.empty() && IndexFile.empty());
Config::ExternalIndexSpec Spec;
Expand All @@ -618,6 +619,7 @@ class FlagsConfigProvider : public config::Provider {
IndexSpec = std::move(Spec);
BGPolicy = Config::BackgroundPolicy::Skip;
}
#endif
if (!EnableBackgroundIndex) {
BGPolicy = Config::BackgroundPolicy::Skip;
}
Expand Down

0 comments on commit cec62ae

Please sign in to comment.