]> Cypherpunks repositories - gostls13.git/commit
cmd/cgo: add -srcdir option
authorIan Lance Taylor <iant@golang.org>
Sun, 30 Oct 2016 16:30:47 +0000 (12:30 -0400)
committerIan Lance Taylor <iant@golang.org>
Sun, 30 Oct 2016 19:14:08 +0000 (19:14 +0000)
commitf135106ec7cf68b47a5b83a1c2b5dd7eda0d614c
tree61e8c80ba5a22569b85bfdae79000209645c4858
parentba048f7ce4a14e956635efc80fc1447c3b8851dd
cmd/cgo: add -srcdir option

This is convenient for direct use of `go tool cgo`. We can also use it
from the go tool to reduce the length of the file names that cgo
generates.

Update #17070.

Change-Id: I8466a0a2cc68a732d17d07319e303497715bac8c
Reviewed-on: https://go-review.googlesource.com/32354
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Russ Cox <rsc@golang.org>
misc/cgo/testgodefs/test.bash
src/cmd/cgo/doc.go
src/cmd/cgo/main.go