diff options
author | Cherry Mui <cherryyz@google.com> | 2023-10-16 22:36:57 -0400 |
---|---|---|
committer | Cherry Mui <cherryyz@google.com> | 2023-10-27 17:54:18 +0000 |
commit | 8c92897e15d15fbc664cd5a05132ce800cf4017f (patch) | |
tree | 029f0431d48c3db8416c04adb8170fc988d99a5a /api | |
parent | 5613882df7555484680ecabc0462b7c23c6f5205 (diff) | |
download | go-8c92897e15d15fbc664cd5a05132ce800cf4017f.tar.gz go-8c92897e15d15fbc664cd5a05132ce800cf4017f.zip |
cmd/compile: rework TestPGOHash to not rebuild dependencies
TestPGOHash may rebuild dependencies as we pass -trimpath to the
go command. This CL makes it pass -trimpath compiler flag to only
the current package instead, as we only need the current package
to have a stable source file path.
Also refactor buildPGOInliningTest to only take compiler flags,
not go flags, to avoid accidental rebuild.
Should fix #63733.
Change-Id: Iec6c4e90cf659790e21083ee2e697f518234c5b9
Reviewed-on: https://go-review.googlesource.com/c/go/+/535915
Reviewed-by: Michael Pratt <mpratt@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Bryan Mills <bcmills@google.com>
Diffstat (limited to 'api')
0 files changed, 0 insertions, 0 deletions