Merge "Delete the noisy error message"
This commit is contained in:
@@ -583,32 +583,28 @@ func (c *config) mockFileSystem(bp string, fs map[string][]byte) {
|
|||||||
c.mockBpList = blueprint.MockModuleListFile
|
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
|
// Returns true if "Bazel builds" is enabled. In this mode, part of build
|
||||||
// analysis is handled by Bazel.
|
// analysis is handled by Bazel.
|
||||||
func (c *config) IsMixedBuildsEnabled() bool {
|
func (c *config) IsMixedBuildsEnabled() bool {
|
||||||
globalMixedBuildsSupport := c.Once(OnceKey{"globalMixedBuildsSupport"}, func() interface{} {
|
globalMixedBuildsSupport := c.Once(OnceKey{"globalMixedBuildsSupport"}, func() interface{} {
|
||||||
if c.productVariables.DeviceArch != nil && *c.productVariables.DeviceArch == "riscv64" {
|
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
|
return false
|
||||||
}
|
}
|
||||||
if c.IsEnvTrue("GLOBAL_THINLTO") {
|
if c.IsEnvTrue("GLOBAL_THINLTO") {
|
||||||
fmt.Fprintln(os.Stderr, "unsupported env var GLOBAL_THINLTO for Bazel: falling back to non-mixed build")
|
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
if len(c.productVariables.SanitizeHost) > 0 {
|
if len(c.productVariables.SanitizeHost) > 0 {
|
||||||
fmt.Fprintln(os.Stderr, "unsupported product var SanitizeHost for Bazel: falling back to non-mixed build")
|
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
if len(c.productVariables.SanitizeDevice) > 0 {
|
if len(c.productVariables.SanitizeDevice) > 0 {
|
||||||
fmt.Fprintln(os.Stderr, "unsupported product var SanitizeDevice for Bazel: falling back to non-mixed build")
|
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
if len(c.productVariables.SanitizeDeviceDiag) > 0 {
|
if len(c.productVariables.SanitizeDeviceDiag) > 0 {
|
||||||
fmt.Fprintln(os.Stderr, "unsupported product var SanitizeDeviceDiag for Bazel: falling back to non-mixed build")
|
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
if len(c.productVariables.SanitizeDeviceArch) > 0 {
|
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 false
|
||||||
}
|
}
|
||||||
return true
|
return true
|
||||||
|
Reference in New Issue
Block a user