Author: Kadir Cetinkaya
Date: 2021-03-11T13:46:52+01:00
New Revision: cec62ae28a5fc5698a1b720a67187972c8e125cb

URL: 
https://github.com/llvm/llvm-project/commit/cec62ae28a5fc5698a1b720a67187972c8e125cb
DIFF: 
https://github.com/llvm/llvm-project/commit/cec62ae28a5fc5698a1b720a67187972c8e125cb.diff

LOG: [clangd] Fix buildbots without grpc enabled

Added: 
    

Modified: 
    clang-tools-extra/clangd/tool/ClangdMain.cpp

Removed: 
    


################################################################################
diff  --git a/clang-tools-extra/clangd/tool/ClangdMain.cpp 
b/clang-tools-extra/clangd/tool/ClangdMain.cpp
index eca30eec3679..ad8d3c928b3c 100644
--- a/clang-tools-extra/clangd/tool/ClangdMain.cpp
+++ b/clang-tools-extra/clangd/tool/ClangdMain.cpp
@@ -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;
@@ -618,6 +619,7 @@ class FlagsConfigProvider : public config::Provider {
       IndexSpec = std::move(Spec);
       BGPolicy = Config::BackgroundPolicy::Skip;
     }
+#endif
     if (!EnableBackgroundIndex) {
       BGPolicy = Config::BackgroundPolicy::Skip;
     }


        
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to