]> Cypherpunks.ru repositories - gostls13.git/commit
cmd/compile: rework TestPGOHash to not rebuild dependencies
authorCherry Mui <cherryyz@google.com>
Tue, 17 Oct 2023 02:36:57 +0000 (22:36 -0400)
committerCherry Mui <cherryyz@google.com>
Fri, 27 Oct 2023 17:54:18 +0000 (17:54 +0000)
commit8c92897e15d15fbc664cd5a05132ce800cf4017f
tree029f0431d48c3db8416c04adb8170fc988d99a5a
parent5613882df7555484680ecabc0462b7c23c6f5205
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>
src/cmd/compile/internal/test/pgo_inl_test.go