summaryrefslogtreecommitdiff
path: root/java/dexpreopt_config.go
diff options
context:
space:
mode:
author Paul Duffin <paulduffin@google.com> 2021-06-04 17:25:28 +0100
committer Paul Duffin <paulduffin@google.com> 2021-06-10 13:40:33 +0100
commitbff50e2b803ede32c9b17b6b7bf3054424703bf5 (patch)
tree74f46eb95fe596ce86473d6e2ebf1a6352bbd420 /java/dexpreopt_config.go
parent7c47515c7f573bdfeafb9b04f240383d1dea1731 (diff)
Ensure primary boot image files are created before they are used
Previously, when building a framework boot image variant it added an implicit dependency onto the first file in the primary boot image variant to ensure that the primary boot image variant files that the dex2oat command needs have been created. That works when generating from source as in that case all the files for a boot image variant are created by a single command. However, it does not work for prebuilts as each prebuilt file will be copied into the required location by separate copy commands. This change adds all the files that the dex2oat command uses implicitly when building an extension boot image as implicit dependencies. Bug: 177892522 Test: m SOONG_CONFIG_art_module_source_build=false droid - the previous command only works in combination with a number of other build changes. Change-Id: I183748fd17f8f3003890675b8c6bb9fcab331443
Diffstat (limited to 'java/dexpreopt_config.go')
-rw-r--r--java/dexpreopt_config.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/java/dexpreopt_config.go b/java/dexpreopt_config.go
index 39a3e11a5..542881d3e 100644
--- a/java/dexpreopt_config.go
+++ b/java/dexpreopt_config.go
@@ -125,6 +125,7 @@ func genBootImageConfigs(ctx android.PathContext) map[string]*bootImageConfig {
frameworkCfg.dexPathsDeps = append(artCfg.dexPathsDeps, frameworkCfg.dexPathsDeps...)
for i := range targets {
frameworkCfg.variants[i].primaryImages = artCfg.variants[i].imagePathOnHost
+ frameworkCfg.variants[i].primaryImagesDeps = artCfg.variants[i].imagesDeps.Paths()
frameworkCfg.variants[i].dexLocationsDeps = append(artCfg.variants[i].dexLocations, frameworkCfg.variants[i].dexLocationsDeps...)
}