Merge "Sampling PGO deprecation" am: 3440d0d474
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1960104 Change-Id: I85e6f4b33b5ef61255ee9a28c1ac2ff1cb5656f2
This commit is contained in:
@@ -208,6 +208,10 @@ func (props *PgoProperties) isPGO(ctx BaseModuleContext) bool {
|
||||
ctx.ModuleErrorf("Instrumentation PGO specification is missing benchmark property")
|
||||
}
|
||||
|
||||
if isSampling {
|
||||
ctx.ModuleErrorf("Sampling PGO is deprecated, use AFDO instead")
|
||||
}
|
||||
|
||||
if isSampling && isInstrumentation {
|
||||
ctx.PropertyErrorf("pgo", "Exactly one of \"instrumentation\" and \"sampling\" properties must be set")
|
||||
}
|
||||
|
Reference in New Issue
Block a user