]> Cypherpunks repositories - gostls13.git/commit
cmd/cgo: extend implementation comment
authorRuss Cox <rsc@golang.org>
Thu, 28 Feb 2013 18:44:29 +0000 (10:44 -0800)
committerRuss Cox <rsc@golang.org>
Thu, 28 Feb 2013 18:44:29 +0000 (10:44 -0800)
commitb89000bcabe16644d877e8d1251a3e6a784153d9
tree2075b1c48874d29e2f8aad96e188270702731e8b
parent1300fb54491496ac19b33c5ef3b4e92fbe89b4e4
cmd/cgo: extend implementation comment

This is the plan for how to make host linking work with
the rest of the system.

There are two complications:

1. It is a goal to preserve the property that pure Go programs
(even ones importing "net") can be compiled without needing
gcc, so that a Go toolchain download works out of the box.
This forces the support for two linking modes: with and without
gcc.

2. It is a goal to allow users with old copies of SWIG to continue
to use those copies. This forces the support for "internal only"
packages. Perhaps it is reasonable to require a new SWIG.
I don't know.

R=iant
CC=golang-dev
https://golang.org/cl/7433043
src/cmd/cgo/doc.go