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:
@@ -179,15 +179,7 @@ func RegisterDexpreoptBootJarsComponents(ctx android.RegistrationContext) {
|
||||
}
|
||||
|
||||
func skipDexpreoptBootJars(ctx android.PathContext) bool {
|
||||
if dexpreopt.GetGlobalConfig(ctx).DisablePreopt {
|
||||
return true
|
||||
}
|
||||
|
||||
if ctx.Config().UnbundledBuild() {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
return dexpreopt.GetGlobalConfig(ctx).DisablePreopt
|
||||
}
|
||||
|
||||
type dexpreoptBootJars struct {
|
||||
|
Reference in New Issue
Block a user