diff --git a/android/config.go b/android/config.go index 839ff05c3..fa439625d 100644 --- a/android/config.go +++ b/android/config.go @@ -701,6 +701,10 @@ func (c *config) IsMixedBuildsEnabled() bool { if c.productVariables.DeviceArch != nil && *c.productVariables.DeviceArch == "riscv64" { return false } + // Disable Bazel when Kythe is running + if c.EmitXrefRules() { + return false + } if c.IsEnvTrue("GLOBAL_THINLTO") { return false }