aboutsummaryrefslogtreecommitdiffstats
path: root/java/dexpreopt_bootjars.go
diff options
context:
space:
mode:
authorJiyong Park <jiyong@google.com>2019-10-29 11:23:10 +0900
committerJiyong Park <jiyong@google.com>2019-10-31 22:13:05 +0900
commit0b2387551bf3ed15cb41eeacaa8cd0286db43349 (patch)
tree37a2a7c05610f7cb063eee3c3c9e230044f5fda5 /java/dexpreopt_bootjars.go
parent5d0b3b7195e35199f48bc8cd685f0b5786487cfe (diff)
downloadbuild_soong-0b2387551bf3ed15cb41eeacaa8cd0286db43349.tar.gz
build_soong-0b2387551bf3ed15cb41eeacaa8cd0286db43349.tar.bz2
build_soong-0b2387551bf3ed15cb41eeacaa8cd0286db43349.zip
stem property of java modules are propagated to Make
62c7829595c0df53e96addcd347c11ac01012eee introduced the new stem property to java modules, but it wasn't propagated to Make. Fixing the problem. This change also fixes a problem that (module name) == (file name) is assumed in dexpreopt_config.go, which no longer is the case. A mutator runs to build a map from module name to its stem. The map is then used when filling up the file paths in the bootImageConfig struct. Bug: 139391334 Bug: 143494499 Test: m Test: BootImageProfileTest Change-Id: Idbc894f877692401471130de6cbfe5e0dd129da9
Diffstat (limited to 'java/dexpreopt_bootjars.go')
-rw-r--r--java/dexpreopt_bootjars.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/java/dexpreopt_bootjars.go b/java/dexpreopt_bootjars.go
index 2a142bae..3d7f36c0 100644
--- a/java/dexpreopt_bootjars.go
+++ b/java/dexpreopt_bootjars.go
@@ -73,7 +73,7 @@ func (image bootImageConfig) moduleFiles(ctx android.PathContext, dir android.Ou
for i, m := range image.modules {
name := image.name
if i != 0 {
- name += "-" + m
+ name += "-" + stemOf(m)
}
for _, ext := range exts {