Do not assume that boot image profile exists when building ART apex.
If the apex is built without boot images, profile may not exist. Test: treehugger Change-Id: I0824100d0ac38f4b7b71b302b401a0c66c3ff3cf
This commit is contained in:
parent
0c9a276ded
commit
f5c548db17
1 changed files with 2 additions and 1 deletions
|
@ -2508,7 +2508,8 @@ func apexBootclasspathFragmentFiles(ctx android.ModuleContext, module blueprint.
|
|||
filesToAdd = append(filesToAdd, *af)
|
||||
}
|
||||
|
||||
if pathInApex := bootclasspathFragmentInfo.ProfileInstallPathInApex(); pathInApex != "" {
|
||||
pathInApex := bootclasspathFragmentInfo.ProfileInstallPathInApex()
|
||||
if pathInApex != "" && !java.SkipDexpreoptBootJars(ctx) {
|
||||
pathOnHost := bootclasspathFragmentInfo.ProfilePathOnHost()
|
||||
tempPath := android.PathForModuleOut(ctx, "boot_image_profile", pathInApex)
|
||||
|
||||
|
|
Loading…
Reference in a new issue