Fix dex2oat symlink now that we generate dex2oat32/dex2oat64. am: 101a7622fe

Change-Id: I7e6e14bef3a46edfddf521a63af0c7280d31073a
This commit is contained in:
Nicolas Geoffray 2020-05-01 10:15:29 +00:00 committed by Automerger Merge Worker
commit 0ed5ce26a5
1 changed files with 5 additions and 3 deletions

View File

@ -154,10 +154,12 @@ func makeCompatSymlinks(name string, ctx android.ModuleContext) (symlinks []stri
// TODO(b/124106384): Clean up compat symlinks for ART binaries.
if strings.HasPrefix(name, "com.android.art.") {
artBinaries := []string{"dalvikvm", "dex2oat"}
for _, b := range artBinaries {
addSymlink("/apex/com.android.art/bin/"+b, "$(TARGET_OUT)/bin", b)
addSymlink("/apex/com.android.art/bin/dalvikvm", "$(TARGET_OUT)/bin", "dalvikvm")
dex2oat := "dex2oat32"
if ctx.Config().Android64() {
dex2oat = "dex2oat64"
}
addSymlink("/apex/com.android.art/bin/"+dex2oat, "$(TARGET_OUT)/bin", "dex2oat")
return
}
return