1
0
mirror of https://github.com/golang/go synced 2024-11-22 10:34:46 -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{ have := map[string]bool{
"builtin": true, // ignore pseudo-package that exists only for documentation "builtin": true, // ignore pseudo-package that exists only for documentation
} }
/*
if !build.DefaultContext.CgoEnabled { if !build.DefaultContext.CgoEnabled {
have["runtime/cgo"] = true // ignore during walk have["runtime/cgo"] = true // ignore during walk
} }
*/
var pkgs []string var pkgs []string
// Commands // Commands