mirror of https://github.com/grpc/grpc.git
Disable XDS on Android/iOS platforms. (#25960)
The XDS code incurs a significant binary size increase, and isn't generally relevant/useful to builds of gRPC for mobile platforms. Note that this makes it impossible to build the XDS for mobile platforms (as opposed to turning XDS off by default but still allowing it to be force-enabled via a config flag). We're going this route, because any approach that turns the feature off by default on some platforms but that still allows force-enabling it on those platforms ends up hitting either bazel's limits (bazel doesn't support a select() statement where multiple branches match), or ends up having to rely on the linker to strip out unused code (by still including the srcs and deps unconditionally, and using a preprocessor directive to remove symbol references, which the linker can then remove), which we don't want to do because relying on the linker makes it too easy to accidentally re-introduce symbol references.pull/26755/head
parent
6995dcd958
commit
12cc594cf8
1 changed files with 25 additions and 1 deletions
Loading…
Reference in new issue