]> Cypherpunks repositories - gostls13.git/commit
cmd/fix: move cgo and 'go build' support checks into TestRewrite
authorBryan C. Mills <bcmills@google.com>
Tue, 2 May 2023 15:59:19 +0000 (11:59 -0400)
committerGopher Robot <gobot@golang.org>
Thu, 4 May 2023 18:02:12 +0000 (18:02 +0000)
commitc6116bea0309c28500ba0a233e5b0ab01a491a1b
tree7cec99c5401c0331d8344570bf74edbff7d8b17c
parent10141676d15665ed8a0255cfc5585ad50444f4ee
cmd/fix: move cgo and 'go build' support checks into TestRewrite

This avoids unnecessary work to determine 'go build' and cgo support
if we're not actually running the test (as in 'go test -list').

Change-Id: Id175a759605b2130d4de8bff8eba4c23fe65ccba
Reviewed-on: https://go-review.googlesource.com/c/go/+/491657
Run-TryBot: Bryan Mills <bcmills@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Auto-Submit: Bryan Mills <bcmills@google.com>
Reviewed-by: Austin Clements <austin@google.com>
src/cmd/fix/main_test.go