]> Cypherpunks repositories - gostls13.git/commit
cmd/go: clean cgo compiler errors
authorRuss Cox <rsc@golang.org>
Fri, 1 Feb 2013 16:34:21 +0000 (08:34 -0800)
committerRuss Cox <rsc@golang.org>
Fri, 1 Feb 2013 16:34:21 +0000 (08:34 -0800)
commit32a6097fdea70f64e56a03709befe3adc3c70038
tree80acb8da50a73ba0688ce5208bea084be7ac0d1f
parentf20e3a10654e71823d58fb5d2deefce24d44a76f
cmd/go: clean cgo compiler errors

Cut out temporary cgo file in error message.
Show C.foo instead of _Ctype_foo.

Before:
x.go:20[/var/folders/00/05_b8000h01000cxqpysvccm000n9d/T/go-build242036121/command-line-arguments/_obj/x.cgo1.go:19]: cannot use tv.Usec (type int32) as type _Ctype___darwin_suseconds_t in assignment

After:
x.go:20: cannot use tv.Usec (type int32) as type C.__darwin_suseconds_t in assignment

Fixes #4255.

R=golang-dev, iant
CC=golang-dev
https://golang.org/cl/7231075
src/cmd/go/build.go