h-vetinari commented on issue #44448: URL: https://github.com/apache/arrow/issues/44448#issuecomment-2430607448
> It seems that `gRPC` CMake package includes `gRPCPluginTargets.cmake` automatically EXCEPT `CROSS_COMPILING`: Yeah, that makes sense... It's not possible to use the plugins for the target architecture. But in our case we actually supply _both_, i.e. there's a libgrpc in the build environment (where we can execute the plugins), and then one in the host environment (where we don't need the plugins but need to match the target architecture). > Does conda really need to use cross-compiling? Yes, and this is impossible to change. We don't have native runners for `linux-aarch64`, `linux-ppc64le` or `osx-arm64`, but they are important platforms we support, so the only way to do it is to cross-compile. This is where things like `Protobuf_PROTOC_EXECUTABLE` come from; i.e. it can be explicitly overridden. We could easily provide some CMake variable for example `-DGRPC_PLUGIN=$BUILD_PREFIX/bin/grpc_cpp_plugin`. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
