<#16833 cgo: add `cgo_enabled` field to `go_binary...
# github-notifications
q
#16833 cgo: add `cgo_enabled` field to `go_binary` to control cgo support Issue created by tdyas Currently Cgo support is controlled by the
--golang-cgo-enabled
flag. Allow cgo support to instead be controlled on a package-by-packge basis via a
cgo
boolean field on
go_package
with additional fields to add C flags etc., and a
pure
boolean field on
go_binary
which disables cgo support entirely for that binary. This is similar to what Bazel offers with rules_go. pantsbuild/pants