Merge "Disable dexpreopt on targets that do not include default ART config."

This commit is contained in:
Ulyana Trafimovich
2019-11-04 12:04:04 +00:00
committed by Gerrit Code Review

View File

@@ -123,6 +123,10 @@ func dexpreoptBootJarsFactory() android.Singleton {
}
func skipDexpreoptBootJars(ctx android.PathContext) bool {
if dexpreoptGlobalConfig(ctx).DisablePreopt {
return true
}
if ctx.Config().UnbundledBuild() {
return true
}