aboutsummaryrefslogtreecommitdiff
path: root/src/go/build/build.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/go/build/build.go')
-rw-r--r--src/go/build/build.go25
1 files changed, 3 insertions, 22 deletions
diff --git a/src/go/build/build.go b/src/go/build/build.go
index 311ecb01f4..c532549cd7 100644
--- a/src/go/build/build.go
+++ b/src/go/build/build.go
@@ -256,28 +256,9 @@ func (ctxt *Context) SrcDirs() []string {
// if set, or else the compiled code's GOARCH, GOOS, and GOROOT.
var Default Context = defaultContext()
-var cgoEnabled = map[string]bool{
- "darwin/386": true,
- "darwin/amd64": true,
- "dragonfly/386": true,
- "dragonfly/amd64": true,
- "freebsd/386": true,
- "freebsd/amd64": true,
- "freebsd/arm": true,
- "linux/386": true,
- "linux/amd64": true,
- "linux/arm": true,
- "android/386": true,
- "android/amd64": true,
- "android/arm": true,
- "netbsd/386": true,
- "netbsd/amd64": true,
- "netbsd/arm": true,
- "openbsd/386": true,
- "openbsd/amd64": true,
- "windows/386": true,
- "windows/amd64": true,
-}
+// On the 1.4 branch, cgo is not enabled by default for any system.
+// Set CGO_ENABLED=1 when running make.bash to enable cgo.
+var cgoEnabled = map[string]bool{}
func defaultContext() Context {
var c Context