mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 20:51:52 +01:00
[clangd] Fix remote index build on macOS
macOS builds suddenly started failing: https://github.com/kirillbobyrev/indexing-tools/runs/925090879 This patch makes use of imported libraries and fixes builds for macOS. Landing this without a review since the patch is quite straightforward and I've been testing it on my local macOS machine for a while. Differential Revision: https://reviews.llvm.org/D84928
This commit is contained in:
parent
1bae08d2a5
commit
e4b2d85cdf
@ -45,11 +45,25 @@ else()
|
|||||||
# system path.
|
# system path.
|
||||||
if (GRPC_HOMEBREW_RETURN_CODE EQUAL "0")
|
if (GRPC_HOMEBREW_RETURN_CODE EQUAL "0")
|
||||||
include_directories(${GRPC_HOMEBREW_PATH}/include)
|
include_directories(${GRPC_HOMEBREW_PATH}/include)
|
||||||
link_directories(${GRPC_HOMEBREW_PATH}/lib)
|
find_library(GRPC_LIBRARY
|
||||||
|
grpc++
|
||||||
|
PATHS ${GRPC_HOMEBREW_PATH}/lib
|
||||||
|
NO_DEFAULT_PATH
|
||||||
|
REQUIRED)
|
||||||
|
add_library(grpc++ UNKNOWN IMPORTED GLOBAL)
|
||||||
|
set_target_properties(grpc++ PROPERTIES
|
||||||
|
IMPORTED_LOCATION ${GRPC_LIBRARY})
|
||||||
endif()
|
endif()
|
||||||
if (PROTOBUF_HOMEBREW_RETURN_CODE EQUAL "0")
|
if (PROTOBUF_HOMEBREW_RETURN_CODE EQUAL "0")
|
||||||
include_directories(${PROTOBUF_HOMEBREW_PATH}/include)
|
include_directories(${PROTOBUF_HOMEBREW_PATH}/include)
|
||||||
link_directories(${PROTOBUF_HOMEBREW_PATH}/lib)
|
find_library(PROTOBUF_LIBRARY
|
||||||
|
protobuf
|
||||||
|
PATHS ${PROTOBUF_HOMEBREW_PATH}/lib
|
||||||
|
NO_DEFAULT_PATH
|
||||||
|
REQUIRED)
|
||||||
|
add_library(protobuf UNKNOWN IMPORTED GLOBAL)
|
||||||
|
set_target_properties(protobuf PROPERTIES
|
||||||
|
IMPORTED_LOCATION ${PROTOBUF_LIBRARY})
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user