Loading android/config.go +24 −1 Original line number Diff line number Diff line Loading @@ -541,7 +541,30 @@ func (c *config) IsMixedBuildsEnabled() bool { fmt.Fprintln(os.Stderr, "unsupported device arch 'riscv64' for Bazel: falling back to non-mixed build") return false } // TODO(b/253664931): Add other fallback criteria below. if c.IsEnvTrue("GLOBAL_THINLTO") { fmt.Fprintln(os.Stderr, "unsupported env var GLOBAL_THINLTO for Bazel: falling back to non-mixed build") return false } if c.IsEnvTrue("CLANG_COVERAGE") { fmt.Fprintln(os.Stderr, "unsupported env var CLANG_COVERAGE for Bazel: falling back to non-mixed build") return false } if len(c.productVariables.SanitizeHost) > 0 { fmt.Fprintln(os.Stderr, "unsupported product var SanitizeHost for Bazel: falling back to non-mixed build") return false } if len(c.productVariables.SanitizeDevice) > 0 { fmt.Fprintln(os.Stderr, "unsupported product var SanitizeDevice for Bazel: falling back to non-mixed build") return false } if len(c.productVariables.SanitizeDeviceDiag) > 0 { fmt.Fprintln(os.Stderr, "unsupported product var SanitizeDeviceDiag for Bazel: falling back to non-mixed build") return false } if len(c.productVariables.SanitizeDeviceArch) > 0 { fmt.Fprintln(os.Stderr, "unsupported product var SanitizeDeviceArch for Bazel: falling back to non-mixed build") return false } return true }).(bool) Loading Loading
android/config.go +24 −1 Original line number Diff line number Diff line Loading @@ -541,7 +541,30 @@ func (c *config) IsMixedBuildsEnabled() bool { fmt.Fprintln(os.Stderr, "unsupported device arch 'riscv64' for Bazel: falling back to non-mixed build") return false } // TODO(b/253664931): Add other fallback criteria below. if c.IsEnvTrue("GLOBAL_THINLTO") { fmt.Fprintln(os.Stderr, "unsupported env var GLOBAL_THINLTO for Bazel: falling back to non-mixed build") return false } if c.IsEnvTrue("CLANG_COVERAGE") { fmt.Fprintln(os.Stderr, "unsupported env var CLANG_COVERAGE for Bazel: falling back to non-mixed build") return false } if len(c.productVariables.SanitizeHost) > 0 { fmt.Fprintln(os.Stderr, "unsupported product var SanitizeHost for Bazel: falling back to non-mixed build") return false } if len(c.productVariables.SanitizeDevice) > 0 { fmt.Fprintln(os.Stderr, "unsupported product var SanitizeDevice for Bazel: falling back to non-mixed build") return false } if len(c.productVariables.SanitizeDeviceDiag) > 0 { fmt.Fprintln(os.Stderr, "unsupported product var SanitizeDeviceDiag for Bazel: falling back to non-mixed build") return false } if len(c.productVariables.SanitizeDeviceArch) > 0 { fmt.Fprintln(os.Stderr, "unsupported product var SanitizeDeviceArch for Bazel: falling back to non-mixed build") return false } return true }).(bool) Loading