[clangd] Fix buildbots without grpc enabled

This commit is contained in:
Kadir Cetinkaya 2021-03-11 13:46:52 +01:00
parent 4f1bbc0b84
commit cec62ae28a
No known key found for this signature in database
GPG Key ID: E39E36B8D2057ED6

View File

@ -609,6 +609,7 @@ public:
Spec.Location = IndexFile;
IndexSpec = std::move(Spec);
}
#if CLANGD_ENABLE_REMOTE
if (!RemoteIndexAddress.empty()) {
assert(!ProjectRoot.empty() && IndexFile.empty());
Config::ExternalIndexSpec Spec;
@ -618,6 +619,7 @@ public:
IndexSpec = std::move(Spec);
BGPolicy = Config::BackgroundPolicy::Skip;
}
#endif
if (!EnableBackgroundIndex) {
BGPolicy = Config::BackgroundPolicy::Skip;
}