Merge "Disable PGO profile use in Clang-based coverage builds" am: 64a075c789
Change-Id: I1a10630ef67e457b0539b519e829aab7f95bc924
This commit is contained in:
@@ -256,6 +256,12 @@ func (pgo *pgo) begin(ctx BaseModuleContext) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// PGO profile use is not feasible for a Clang coverage build because
|
||||||
|
// -fprofile-use and -fprofile-instr-generate are incompatible.
|
||||||
|
if ctx.DeviceConfig().ClangCoverageEnabled() {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
if !ctx.Config().IsEnvTrue("ANDROID_PGO_NO_PROFILE_USE") &&
|
if !ctx.Config().IsEnvTrue("ANDROID_PGO_NO_PROFILE_USE") &&
|
||||||
proptools.BoolDefault(pgo.Properties.Pgo.Enable_profile_use, true) {
|
proptools.BoolDefault(pgo.Properties.Pgo.Enable_profile_use, true) {
|
||||||
if profileFile := pgo.Properties.getPgoProfileFile(ctx); profileFile.Valid() {
|
if profileFile := pgo.Properties.getPgoProfileFile(ctx); profileFile.Valid() {
|
||||||
|
Reference in New Issue
Block a user