Merge "Only look for profiles when we have a profile dir" am: 0acb0fb2b7

Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1349324

Change-Id: I1009cba45c59b01c8374f35d6885556b5b6e9635
This commit is contained in:
Treehugger Robot
2020-06-25 01:35:52 +00:00
committed by Automerger Merge Worker

View File

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