Don't disable dexpreopting implicitly in unbundled builds.
Test: art/test/testrunner/run_build_test_target.py art-linux-bionic-x64 with TARGET_BUILD_UNBUNDLED enabled in the build scripts Test: art/test/testrunner/testrunner.py --target --64 --optimizing with TARGET_BUILD_UNBUNDLED enabled in chroot on device Bug: 157549171 Change-Id: I124c341d1801c4afa22f836dd567019de3e9498e
This commit is contained in:
@@ -77,10 +77,6 @@ func (d *dexpreopter) dexpreoptDisabled(ctx android.BaseModuleContext) bool {
|
|||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
|
||||||
if ctx.Config().UnbundledBuild() {
|
|
||||||
return true
|
|
||||||
}
|
|
||||||
|
|
||||||
if d.isTest {
|
if d.isTest {
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
@@ -179,15 +179,7 @@ func RegisterDexpreoptBootJarsComponents(ctx android.RegistrationContext) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func skipDexpreoptBootJars(ctx android.PathContext) bool {
|
func skipDexpreoptBootJars(ctx android.PathContext) bool {
|
||||||
if dexpreopt.GetGlobalConfig(ctx).DisablePreopt {
|
return dexpreopt.GetGlobalConfig(ctx).DisablePreopt
|
||||||
return true
|
|
||||||
}
|
|
||||||
|
|
||||||
if ctx.Config().UnbundledBuild() {
|
|
||||||
return true
|
|
||||||
}
|
|
||||||
|
|
||||||
return false
|
|
||||||
}
|
}
|
||||||
|
|
||||||
type dexpreoptBootJars struct {
|
type dexpreoptBootJars struct {
|
||||||
|
Reference in New Issue
Block a user