[PATCH] D85958: [clangd] Fix find_program() result check when searching for gRPC
Aleksandr Platonov via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Aug 14 01:31:59 PDT 2020
ArcsinX updated this revision to Diff 285579.
ArcsinX added a comment.
Rebase
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D85958/new/
https://reviews.llvm.org/D85958
Files:
llvm/cmake/modules/FindGRPC.cmake
Index: llvm/cmake/modules/FindGRPC.cmake
===================================================================
--- llvm/cmake/modules/FindGRPC.cmake
+++ llvm/cmake/modules/FindGRPC.cmake
@@ -31,7 +31,7 @@
endif()
find_program(GRPC_CPP_PLUGIN grpc_cpp_plugin)
find_program(PROTOC protoc)
- if (GRPC_CPP_PLUGIN-NOTFOUND OR PROTOC-NOTFOUND)
+ if (NOT GRPC_CPP_PLUGIN OR NOT PROTOC)
message(FATAL_ERROR "gRPC C++ Plugin and Protoc must be on $PATH for Clangd remote index build.")
endif()
# On macOS the libraries are typically installed via Homebrew and are not on
@@ -40,7 +40,7 @@
find_program(HOMEBREW brew)
# If Homebrew is not found, the user might have installed libraries
# manually. Fall back to the system path.
- if (NOT HOMEBREW-NOTFOUND)
+ if (HOMEBREW)
execute_process(COMMAND ${HOMEBREW} --prefix grpc
OUTPUT_VARIABLE GRPC_HOMEBREW_PATH
RESULT_VARIABLE GRPC_HOMEBREW_RETURN_CODE
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D85958.285579.patch
Type: text/x-patch
Size: 956 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200814/4e1e1996/attachment.bin>
More information about the llvm-commits
mailing list