From fe6330c7d2d6102a0436da2892e71e3b490ac15c Mon Sep 17 00:00:00 2001 From: Colin Cross Date: Tue, 17 Sep 2019 14:45:31 -0700 Subject: Remove old-style support for translated second architectures Translated second architectures now go in NativeBridgeArch instead of DeviceSecondaryArch. Bug: 141242600 Test: m checkbuild Change-Id: I568046330abc002d4eed582cb999b62a5eaba790 --- java/dexpreopt.go | 4 ---- java/dexpreopt_config.go | 6 +----- 2 files changed, 1 insertion(+), 9 deletions(-) (limited to 'java') diff --git a/java/dexpreopt.go b/java/dexpreopt.go index 6214dac44..8bc9b19ad 100644 --- a/java/dexpreopt.go +++ b/java/dexpreopt.go @@ -126,10 +126,6 @@ func (d *dexpreopter) dexpreopt(ctx android.ModuleContext, dexJarFile android.Mo archs = archs[:1] } } - if ctx.Config().SecondArchIsTranslated() { - // Only preopt primary arch for translated arch since there is only an image there. - archs = archs[:1] - } var images android.Paths var imagesDeps []android.Paths diff --git a/java/dexpreopt_config.go b/java/dexpreopt_config.go index 8c699b83a..043f9daed 100644 --- a/java/dexpreopt_config.go +++ b/java/dexpreopt_config.go @@ -87,11 +87,7 @@ var systemServerClasspathKey = android.NewOnceKey("systemServerClasspath") // supported through native bridge. func dexpreoptTargets(ctx android.PathContext) []android.Target { var targets []android.Target - for i, target := range ctx.Config().Targets[android.Android] { - if ctx.Config().SecondArchIsTranslated() && i > 0 { - break - } - + for _, target := range ctx.Config().Targets[android.Android] { if target.NativeBridge == android.NativeBridgeDisabled { targets = append(targets, target) } -- cgit v1.2.3-59-g8ed1b