Merge "For JIT-zygote config, add "apex" boot image files to the ART apex."

am: c18235cb86

Change-Id: I7bd45b7d963e612326ebac220582dde4d6c7c3a4
This commit is contained in:
Ulyana Trafimovich
2020-01-23 04:10:06 -08:00
committed by android-build-merger

View File

@@ -190,7 +190,18 @@ func DexpreoptedArtApexJars(ctx android.BuilderContext) map[android.ArchType]and
if skipDexpreoptBootJars(ctx) {
return nil
}
return artBootImageConfig(ctx).imagesDeps
// Include dexpreopt files for the primary boot image.
files := artBootImageConfig(ctx).imagesDeps
// For JIT-zygote config, also include dexpreopt files for the primary JIT-zygote image.
if dexpreoptGlobalConfig(ctx).UseApexImage {
for arch, paths := range artJZBootImageConfig(ctx).imagesDeps {
files[arch] = append(files[arch], paths...)
}
}
return files
}
// dexpreoptBoot singleton rules