|
|
|
@ -59,8 +59,7 @@ stdenv.mkDerivation rec { |
|
|
|
|
"-DCMAKE_SKIP_BUILD_RPATH=OFF" |
|
|
|
|
] ++ lib.optionals (stdenv.hostPlatform != stdenv.buildPlatform) [ |
|
|
|
|
"-D_gRPC_PROTOBUF_PROTOC_EXECUTABLE=${buildPackages.protobuf}/bin/protoc" |
|
|
|
|
] ++ lib.optionals |
|
|
|
|
((stdenv.hostPlatform.useLLVM or false) && lib.versionOlder stdenv.cc.cc.version "11.0") [ |
|
|
|
|
] ++ lib.optionals ((stdenv.hostPlatform.useLLVM or false) && lib.versionOlder stdenv.cc.cc.version "11.0") [ |
|
|
|
|
# Needs to be compiled with -std=c++11 for clang < 11. Interestingly this is |
|
|
|
|
# only an issue with the useLLVM stdenv, not the darwin stdenv… |
|
|
|
|
# https://github.com/grpc/grpc/issues/26473#issuecomment-860885484 |
|
|
|
|