diff options
| author | Russ Cox <rsc@golang.org> | 2013-09-11 13:25:30 -0400 |
|---|---|---|
| committer | Russ Cox <rsc@golang.org> | 2013-09-11 13:25:30 -0400 |
| commit | 611b182190e759879b3988077daf7d52eb831b5e (patch) | |
| tree | e8091d470ceb302dec2cfecd392326a226bbab2f /src/cmd/api | |
| parent | fdaf88ea5b7a3bc937e68875d55b5741ecb2f092 (diff) | |
| download | go-611b182190e759879b3988077daf7d52eb831b5e.tar.xz | |
go/build: reject directory with only cgo files if cgo not in use
The old test for "no Go files" was p.Name == "", meaning we never
saw a Go package statement. That test fails if there are cgo files
that we parsed (and recorded the package name) but then chose
not to use (because cgo is not available).
Test the actual file lists instead.
Fixes #6078.
R=golang-dev, iant
CC=golang-dev
https://golang.org/cl/13661043
Diffstat (limited to 'src/cmd/api')
0 files changed, 0 insertions, 0 deletions
