]> Cypherpunks repositories - gostls13.git/commit
cmd/go: use new SWIG -cgo option
authorIan Lance Taylor <iant@golang.org>
Wed, 4 Mar 2015 23:43:43 +0000 (15:43 -0800)
committerIan Lance Taylor <iant@golang.org>
Fri, 6 Mar 2015 03:41:32 +0000 (03:41 +0000)
commitddf958d4683e79edd9496337bddb9ed624057470
tree2883ca29368e65df5f20e2025563f0f177e5e53f
parentf3d3328988a547cd21bcd398b7155ec390b642d3
cmd/go: use new SWIG -cgo option

This fixes SWIG to work again.  It requires SWIG 3.0.6 or later.
Earlier versions of SWIG will not work because they generate a .c file
to be compiled by [568]c, which no longer exist.  As of SWIG 3.0.6
SWIG supports a -cgo option that tells it to generate files that
import "C" and can be used with the cgo tool.  With luck this will
means that future versions of SWIG will not require changes for future
versions of Go.

Change-Id: Iad7beb196ba9dcd3e3f684196d50e5d51ed98204
Reviewed-on: https://go-review.googlesource.com/6851
Reviewed-by: Russ Cox <rsc@golang.org>
src/cmd/go/build.go