]> Cypherpunks repositories - gostls13.git/commit
cmd/cgo: clarify implicit "cgo" build constraint
authorRens Rikkerink <Ikkerens@users.noreply.github.com>
Mon, 26 Feb 2018 18:23:00 +0000 (18:23 +0000)
committerIan Lance Taylor <iant@golang.org>
Mon, 26 Feb 2018 18:32:38 +0000 (18:32 +0000)
commitcbfda7f89284c3e2809a303096632cbe312dbb69
tree2c22706c63eacd6e05557bf79f299f020fb9d26e
parent515fa58ac967c88376a56e0c5b76e86ce1658150
cmd/cgo: clarify implicit "cgo" build constraint

When using the special import "C", the "cgo" build constraint is implied for the go file,
potentially triggering unclear "undefined" error messages.
Explicitly explain this in the documentation.

Updates #24068

Change-Id: Ib656ceccd52c749ffe7fb2d3db9ac144f17abb32
GitHub-Last-Rev: 5a13f00a9b917e51246a5fbb642c4e9ed55aa21d
GitHub-Pull-Request: golang/go#24072
Reviewed-on: https://go-review.googlesource.com/96655
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/cmd/cgo/doc.go