]> Cypherpunks repositories - gostls13.git/commit
cmd/cgo: add -exportheader option
authorIan Lance Taylor <iant@golang.org>
Thu, 7 May 2015 00:53:17 +0000 (17:53 -0700)
committerIan Lance Taylor <iant@golang.org>
Thu, 7 May 2015 05:03:23 +0000 (05:03 +0000)
commit5e94c65b5d893924b0a8ba94de3881f9ffc4c293
tree83870cc67d4afc9e38fee330f56d891aa81c3bfe
parent965d00f82a5efa1a729db71b813bc6c3fd57bcf2
cmd/cgo: add -exportheader option

The -exportheader option tells cgo to generate a header file declaring
expoted functions.  The header file is only created if there are, in
fact, some exported functions, so it also serves as a signal as to
whether there were any.

In future CLs the go tool will use this option to install header files
for packages that use cgo and export functions.

Change-Id: I5b04357d453a9a8f0e70d37f8f18274cf40d74c9
Reviewed-on: https://go-review.googlesource.com/9796
Reviewed-by: David Crawshaw <crawshaw@golang.org>
src/cmd/cgo/doc.go
src/cmd/cgo/main.go
src/cmd/cgo/out.go