mirror of
https://github.com/golang/go
synced 2024-11-20 02:24:43 -07:00
go/build: fix build
empty is already not a nil. R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/5375097
This commit is contained in:
parent
3bd5082f57
commit
301701d8a7
@ -37,18 +37,20 @@ var buildPkgs = []struct {
|
|||||||
{
|
{
|
||||||
"go/build/cmdtest",
|
"go/build/cmdtest",
|
||||||
&DirInfo{
|
&DirInfo{
|
||||||
GoFiles: []string{"main.go"},
|
GoFiles: []string{"main.go"},
|
||||||
Package: "main",
|
Package: "main",
|
||||||
Imports: []string{"go/build/pkgtest"},
|
Imports: []string{"go/build/pkgtest"},
|
||||||
|
TestImports: []string{},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"go/build/cgotest",
|
"go/build/cgotest",
|
||||||
&DirInfo{
|
&DirInfo{
|
||||||
CgoFiles: []string{"cgotest.go"},
|
CgoFiles: []string{"cgotest.go"},
|
||||||
CFiles: []string{"cgotest.c"},
|
CFiles: []string{"cgotest.c"},
|
||||||
Imports: []string{"C", "unsafe"},
|
Imports: []string{"C", "unsafe"},
|
||||||
Package: "cgotest",
|
TestImports: []string{},
|
||||||
|
Package: "cgotest",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user