summaryrefslogtreecommitdiff
path: root/misc/cgo/test/issue8828/issue8828.c
diff options
context:
space:
mode:
authorAustin Clements <austin@google.com>2023-05-05 22:29:11 -0400
committerAustin Clements <austin@google.com>2023-05-12 12:00:00 +0000
commitaf64b75b67f15154ed13279212d40474cf061fff (patch)
tree7cd4a342024109f5bd61740569cd985177cfbb60 /misc/cgo/test/issue8828/issue8828.c
parenta76b073712343328a6da1daa597ddfe68d543f32 (diff)
downloadgo-git-af64b75b67f15154ed13279212d40474cf061fff.tar.gz
misc/cgo/test: add cgo build constraints
We're about to move this package to cmd/cgo/internal, where it will get caught up in the "CGO_ENABLED=0 go install cmd" done by make.bash. Currently, building this package with CGO_ENABLED=0 fails because it contains several source files that don't themselves import "C", but do import a subdirectory where that package imports "C" and thus has no exported API. Fix the CGO_ENABLED=0 build of this package by adding the necessary cgo build tags. Not all source files need it, but this CL makes "CGO_ENABLED=0 go test -c" work in this package. For #37486. Change-Id: Id137cdfbdd950eea802413536d990ab642ebcd7e Reviewed-on: https://go-review.googlesource.com/c/go/+/493215 Reviewed-by: Bryan Mills <bcmills@google.com> Reviewed-by: Dmitri Shuralyov <dmitshur@google.com> TryBot-Result: Gopher Robot <gobot@golang.org> Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org> Run-TryBot: Austin Clements <austin@google.com>
Diffstat (limited to 'misc/cgo/test/issue8828/issue8828.c')
0 files changed, 0 insertions, 0 deletions