]> Cypherpunks.ru repositories - gostls13.git/commit
cmd/go: run cover tool before swig
authorThan McIntosh <thanm@google.com>
Thu, 21 Dec 2023 13:21:59 +0000 (08:21 -0500)
committerGopher Robot <gobot@golang.org>
Fri, 5 Jan 2024 21:29:51 +0000 (21:29 +0000)
commitc0693f648a2fd98aae126ef4f68cd7b6ebff40cd
tree0895eec907bb55f611ed41938d1cc5a7e8e9bed8
parent8db131082d08e497fd8e9383d0ff7715e1bef478
cmd/go: run cover tool before swig

When building a package, run the cover tool on the collected go/cgo
source files before invoking swig (if swig files are present), as
opposed to running swig and then cover. Running swig adds new Go files
to the "cgo" list, and we want to avoid running those newly generated
files through the cover tool.

Fixes #64661.

Cq-Include-Trybots: luci.golang.try:gotip-linux-amd64-longtest
Change-Id: I32b6dad5c39fcf5e656c40fb3b44220c69320889
Reviewed-on: https://go-review.googlesource.com/c/go/+/552095
Auto-Submit: Than McIntosh <thanm@google.com>
Reviewed-by: Bryan Mills <bcmills@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
src/cmd/go/internal/work/exec.go
src/cmd/go/testdata/script/cover_swig.txt [new file with mode: 0644]