sweet: Add configurable PGO build env
This CL is simply rebasing mpratt@google.com's cl/498275 to HEAD, and
added the help message.
Use like so:
[[config]]
name = "pgo"
goroot = "/path/to/go/"
[[config.pgoconfig]]
name = "baseline"
envbuild = ["GOFLAGS=-gcflags=all=-d=pgodevirtualize=0"]
[[config.pgoconfig]]
name = "devirtall"
envbuild = ["GOFLAGS=-gcflags=all=-d=pgodevirtualize=1"]
A config using pgoenvbuild attribute will only run profile once for all
sub configs, i.e. pgo baseline and devirtall will be based on the
same profile.
Change-Id: I52013ee61bf69e4cb16e2ba649cc49fdb38cef2f
Reviewed-on: https://go-review.googlesource.com/c/benchmarks/+/628935
Reviewed-by: Michael Knyszek <mknyszek@google.com>
Commit-Queue: Junyang Shao <shaojunyang@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
2 files changed