From: Dong-hee Na Date: Tue, 27 Jun 2017 14:04:44 +0000 (+0900) Subject: cmd/go: update helpdoc.go about '-buildmode' X-Git-Tag: go1.9rc1~156 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=5dafa91917eee6c446e411bad0aee13b0a556900;p=gostls13.git cmd/go: update helpdoc.go about '-buildmode' After https://golang.org/cl/46421 is landed. helpdoc.go should be updated that -buildmode=c-shared requires only one main package. Fixes #15082 Change-Id: I30a0ee956e6c4655c975ecdaa905887bd474952c Reviewed-on: https://go-review.googlesource.com/46810 Reviewed-by: Brad Fitzpatrick --- diff --git a/src/cmd/go/alldocs.go b/src/cmd/go/alldocs.go index beda85860d..aaeaab60cf 100644 --- a/src/cmd/go/alldocs.go +++ b/src/cmd/go/alldocs.go @@ -849,10 +849,10 @@ // exactly one main package to be listed. // // -buildmode=c-shared -// Build the listed main packages, plus all packages that they -// import, into C shared libraries. The only callable symbols will +// Build the listed main package, plus all packages it imports, +// into a C shared library. The only callable symbols will // be those functions exported using a cgo //export comment. -// Non-main packages are ignored. +// Requires exactly one main package to be listed. // // -buildmode=default // Listed main packages are built into executables and listed diff --git a/src/cmd/go/internal/help/helpdoc.go b/src/cmd/go/internal/help/helpdoc.go index 04731c232b..b9349ee889 100644 --- a/src/cmd/go/internal/help/helpdoc.go +++ b/src/cmd/go/internal/help/helpdoc.go @@ -589,10 +589,10 @@ are: exactly one main package to be listed. -buildmode=c-shared - Build the listed main packages, plus all packages that they - import, into C shared libraries. The only callable symbols will + Build the listed main package, plus all packages it imports, + into a C shared library. The only callable symbols will be those functions exported using a cgo //export comment. - Non-main packages are ignored. + Requires exactly one main package to be listed. -buildmode=default Listed main packages are built into executables and listed