mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
cmd/go: document c-shared buildmode for building WASI library/reactor
For #65199. Change-Id: Icd3ec7cf25c2d381401686333c8aeed8013b3fbd Reviewed-on: https://go-review.googlesource.com/c/go/+/633418 Reviewed-by: Michael Matloob <matloob@golang.org> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
This commit is contained in:
parent
312f7c1bd3
commit
04cdaa9984
2 changed files with 8 additions and 2 deletions
|
|
@ -2210,7 +2210,10 @@
|
|||
// 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.
|
||||
// Requires exactly one main package to be listed.
|
||||
// On wasip1, this mode builds it to a WASI reactor/library,
|
||||
// of which the callable symbols are those functions exported
|
||||
// using a //go:wasmexport directive. Requires exactly one
|
||||
// main package to be listed.
|
||||
//
|
||||
// -buildmode=default
|
||||
// Listed main packages are built into executables and listed
|
||||
|
|
|
|||
|
|
@ -769,7 +769,10 @@ are:
|
|||
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.
|
||||
Requires exactly one main package to be listed.
|
||||
On wasip1, this mode builds it to a WASI reactor/library,
|
||||
of which the callable symbols are those functions exported
|
||||
using a //go:wasmexport directive. Requires exactly one
|
||||
main package to be listed.
|
||||
|
||||
-buildmode=default
|
||||
Listed main packages are built into executables and listed
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue