]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/go: update helpdoc.go about '-buildmode'
authorDong-hee Na <donghee.na92@gmail.com>
Tue, 27 Jun 2017 14:04:44 +0000 (23:04 +0900)
committerBrad Fitzpatrick <bradfitz@golang.org>
Tue, 27 Jun 2017 18:53:08 +0000 (18:53 +0000)
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 <bradfitz@golang.org>
src/cmd/go/alldocs.go
src/cmd/go/internal/help/helpdoc.go

index beda85860d7a36efd6a6a37f32715b856c18d1ff..aaeaab60cf4efe7b16a80507f00924ae2b2dc9d9 100644 (file)
 //             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
index 04731c232bfb58b2f44b19f95236d74335c2c8eb..b9349ee8894768f4770cc710d59da805b084d14a 100644 (file)
@@ -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