From 5dd39923a09ec284d30083e5fadaa29e618d4446 Mon Sep 17 00:00:00 2001 From: Kadir Cetinkaya Date: Fri, 23 Oct 2020 16:36:52 +0200 Subject: [PATCH] [clangd] Fix remote-server build and add it to check-clangd Differential Revision: https://reviews.llvm.org/D90047 --- clang-tools-extra/clangd/index/remote/server/Server.cpp | 2 -- clang-tools-extra/clangd/test/CMakeLists.txt | 4 ++++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/clang-tools-extra/clangd/index/remote/server/Server.cpp b/clang-tools-extra/clangd/index/remote/server/Server.cpp index 750c659381af..7b68549a4afd 100644 --- a/clang-tools-extra/clangd/index/remote/server/Server.cpp +++ b/clang-tools-extra/clangd/index/remote/server/Server.cpp @@ -33,8 +33,6 @@ #include #include -#include "Index.grpc.pb.h" - namespace clang { namespace clangd { namespace remote { diff --git a/clang-tools-extra/clangd/test/CMakeLists.txt b/clang-tools-extra/clangd/test/CMakeLists.txt index 878408cc5483..ade42ac457e0 100644 --- a/clang-tools-extra/clangd/test/CMakeLists.txt +++ b/clang-tools-extra/clangd/test/CMakeLists.txt @@ -21,6 +21,10 @@ if(CLANGD_BUILD_XPC) list(APPEND CLANGD_TEST_DEPS ClangdXpcUnitTests) endif() +if(CLANGD_ENABLE_REMOTE) + list(APPEND CLANGD_TEST_DEPS clangd-index-server) +endif() + foreach(dep FileCheck count not llvm-config) if(TARGET ${dep}) list(APPEND CLANGD_TEST_DEPS ${dep})