]> Cypherpunks repositories - gostls13.git/commit
cmd/go: make file:line for cgo files look like non-cgo files
authorRuss Cox <rsc@golang.org>
Fri, 10 Nov 2017 20:46:56 +0000 (15:46 -0500)
committerRuss Cox <rsc@golang.org>
Thu, 16 Nov 2017 16:33:15 +0000 (16:33 +0000)
commit8c47aa155f944278c0a79454af35c55528d02c30
tree8188718a22269d847b9d21e634f8f1bf09315bc2
parent85c3ebf4dde67026a703dd7c4a3b64ffc307e115
cmd/go: make file:line for cgo files look like non-cgo files

Passing the absolute path to cgo puts the absolute path in the
generated file's //line directives, which then shows that path
in the compiler output, which the go command can then
make relative to the current directory, same as it does for
other compiler output.

Change-Id: Ia2064fea40078c46fd97e3a3b8c9fa1488f913e3
Reviewed-on: https://go-review.googlesource.com/77154
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/cmd/cgo/out.go
src/cmd/go/go_test.go
src/cmd/go/internal/work/exec.go
src/cmd/go/testdata/src/coverbad/p1.go [new file with mode: 0644]