We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ac82fe6 commit c2d85ebCopy full SHA for c2d85eb
src/cmd/go/internal/cfg/cfg.go
@@ -145,7 +145,8 @@ func defaultContext() build.Context {
145
if buildcfg.DefaultCGO_ENABLED == "1" {
146
defaultCgoEnabled = true
147
} else if buildcfg.DefaultCGO_ENABLED == "0" {
148
- } else if runtime.GOARCH == ctxt.GOARCH && runtime.GOOS == ctxt.GOOS {
+ }
149
+ if runtime.GOARCH == ctxt.GOARCH && runtime.GOOS == ctxt.GOOS {
150
defaultCgoEnabled = platform.CgoSupported(ctxt.GOOS, ctxt.GOARCH)
151
// Use built-in default cgo setting for GOOS/GOARCH.
152
// Note that ctxt.GOOS/GOARCH are derived from the preference list
0 commit comments