1
0
mirror of https://github.com/golang/go synced 2024-11-25 10:07:56 -07:00

cmd/go: fix build (piece of 5489100 leaked in to last checkin)

TBR=golang-dev
CC=golang-dev
https://golang.org/cl/5489102
This commit is contained in:
Russ Cox 2011-12-21 08:05:04 -05:00
parent 6645602c0b
commit 0fcb24b91c

View File

@ -242,9 +242,11 @@ func allPackages(what string) []string {
have := map[string]bool{
"builtin": true, // ignore pseudo-package that exists only for documentation
}
if !build.DefaultContext.CgoEnabled {
have["runtime/cgo"] = true // ignore during walk
}
/*
if !build.DefaultContext.CgoEnabled {
have["runtime/cgo"] = true // ignore during walk
}
*/
var pkgs []string
// Commands