Merge "Fix profileCommand to remove the profile first." am: 8e4cd8883a
am: 9f8079dc42
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1689753 Change-Id: Ia3a73c78106776577ae8cb9d429f4d589816b45c
This commit is contained in:
@@ -134,7 +134,8 @@ func profileCommand(ctx android.PathContext, globalSoong *GlobalSoongConfig, glo
|
||||
profileInstalledPath := module.DexLocation + ".prof"
|
||||
|
||||
if !module.ProfileIsTextListing {
|
||||
rule.Command().FlagWithOutput("touch ", profilePath)
|
||||
rule.Command().Text("rm -f").Output(profilePath)
|
||||
rule.Command().Text("touch").Output(profilePath)
|
||||
}
|
||||
|
||||
cmd := rule.Command().
|
||||
@@ -174,7 +175,8 @@ func bootProfileCommand(ctx android.PathContext, globalSoong *GlobalSoongConfig,
|
||||
profileInstalledPath := module.DexLocation + ".bprof"
|
||||
|
||||
if !module.ProfileIsTextListing {
|
||||
rule.Command().FlagWithOutput("touch ", profilePath)
|
||||
rule.Command().Text("rm -f").Output(profilePath)
|
||||
rule.Command().Text("touch").Output(profilePath)
|
||||
}
|
||||
|
||||
cmd := rule.Command().
|
||||
|
Reference in New Issue
Block a user