]> Cypherpunks repositories - gostls13.git/commit
cmd/cgo: don't use absolute paths in the export header file
authorIan Lance Taylor <iant@golang.org>
Thu, 19 Apr 2018 19:56:29 +0000 (12:56 -0700)
committerIan Lance Taylor <iant@golang.org>
Wed, 25 Apr 2018 00:36:09 +0000 (00:36 +0000)
commitbe012e1e2e5fb24c765157fd2ca7e05675d6a1c2
tree79b1d75a1c53c9f9ff9cae73e1372e55db112a9c
parenta5f19812cf0a8be6df68b9f90a8b80d734b6e862
cmd/cgo: don't use absolute paths in the export header file

We were using absolute paths in the #line directives in the export
header file. This makes the header file change if you move GOPATH.
The absolute paths aren't helpful for the final user, which is some C
program elsewhere.

Fixes #24945

Change-Id: I2da32c9b477df578bd5087435a03fe97abe462e3
Reviewed-on: https://go-review.googlesource.com/108315
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
misc/cgo/testcarchive/carchive_test.go
src/cmd/cgo/out.go