Towards Faster Cross-Platform Builds
summary
Bazel adds two concrete features to reduce redundant cross‑platform rebuilds: path mapping rewrites output paths so Java/JVM actions with different target triples share remote cache entries (requires Bazel 7 RC, remote cache, and a remapping-capable executor) and yields measured improvements (YouTube Android: 25% faster subsequent builds with 15% Java rules; Play Store app: ~40% faster with 11% Java rules). cache key scrubbing rewrites or omits platform-sensitive inputs using a protobuf config and optional user salt; it improves cache hits but requires careful rules and is currently experimental.
AI-written summary · about
