Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c69b2631 authored by Jason Wu's avatar Jason Wu Committed by Gerrit Code Review
Browse files

Merge "Delete the noisy error message"

parents 4bf6a9ee ff1bb316
Loading
Loading
Loading
Loading
+2 −6
Original line number Diff line number Diff line
@@ -583,32 +583,28 @@ func (c *config) mockFileSystem(bp string, fs map[string][]byte) {
	c.mockBpList = blueprint.MockModuleListFile
}

// TODO(b/265062549): Add a field to our collected (and uploaded) metrics which
// describes a reason that we fell back to non-mixed builds.
// Returns true if "Bazel builds" is enabled. In this mode, part of build
// analysis is handled by Bazel.
func (c *config) IsMixedBuildsEnabled() bool {
	globalMixedBuildsSupport := c.Once(OnceKey{"globalMixedBuildsSupport"}, func() interface{} {
		if c.productVariables.DeviceArch != nil && *c.productVariables.DeviceArch == "riscv64" {
			fmt.Fprintln(os.Stderr, "unsupported device arch 'riscv64' for Bazel: falling back to non-mixed build")
			return false
		}
		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 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