commit | 3440d0d4748f79e03e1ee6d26038496d4ac4b312 | [log] [tgz] |
---|---|---|
author | Yi Kong <yikong@google.com> | Wed Jan 26 05:43:42 2022 +0000 |
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | Wed Jan 26 05:43:42 2022 +0000 |
tree | 6589e019d66094c990ef913a47ec6c53755c18b5 | |
parent | a61dbd457e77b18a160de0574d8b676057acc29e [diff] | |
parent | 470f76f589c39c96dc55eec5f65b374de2c7718f [diff] |
Merge "Sampling PGO deprecation"
diff --git a/cc/pgo.go b/cc/pgo.go index cd017c4..aa0feae 100644 --- a/cc/pgo.go +++ b/cc/pgo.go
@@ -208,6 +208,10 @@ 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") }