Merge "Don't check ABIs in SecondArchIsTranslated"
This commit is contained in:
@@ -948,6 +948,8 @@ func findOverrideValue(overrides []string, name string, errorMsg string) (newVal
|
|||||||
return "", false
|
return "", false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// SecondArchIsTranslated returns true if the primary device arch is X86 or X86_64 and the device also has an arch
|
||||||
|
// that is Arm or Arm64.
|
||||||
func (c *config) SecondArchIsTranslated() bool {
|
func (c *config) SecondArchIsTranslated() bool {
|
||||||
deviceTargets := c.Targets[Android]
|
deviceTargets := c.Targets[Android]
|
||||||
if len(deviceTargets) < 2 {
|
if len(deviceTargets) < 2 {
|
||||||
@@ -956,8 +958,7 @@ func (c *config) SecondArchIsTranslated() bool {
|
|||||||
|
|
||||||
arch := deviceTargets[0].Arch
|
arch := deviceTargets[0].Arch
|
||||||
|
|
||||||
return (arch.ArchType == X86 || arch.ArchType == X86_64) &&
|
return (arch.ArchType == X86 || arch.ArchType == X86_64) && hasArmAndroidArch(deviceTargets)
|
||||||
(hasArmAbi(arch) || hasArmAndroidArch(deviceTargets))
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func (c *config) IntegerOverflowDisabledForPath(path string) bool {
|
func (c *config) IntegerOverflowDisabledForPath(path string) bool {
|
||||||
|
Reference in New Issue
Block a user