mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-01-08 17:11:33 +00:00
[clangd] Fix buildbots without grpc enabled
This commit is contained in:
parent
4f1bbc0b84
commit
cec62ae28a
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user