Merge "Only look for profiles when we have a profile dir"

This commit is contained in:
Treehugger Robot 2020-06-25 01:28:52 +00:00 committed by Gerrit Code Review
commit 0acb0fb2b7
1 changed files with 1 additions and 1 deletions

View File

@ -173,7 +173,7 @@ func (d *dexpreopter) dexpreopt(ctx android.ModuleContext, dexJarFile android.Mo
profileBootListing = android.ExistentPathForSource(ctx,
ctx.ModuleDir(), String(d.dexpreoptProperties.Dex_preopt.Profile)+"-boot")
profileIsTextListing = true
} else {
} else if global.ProfileDir != "" {
profileClassListing = android.ExistentPathForSource(ctx,
global.ProfileDir, ctx.ModuleName()+".prof")
}