1
0
mirror of https://github.com/golang/go synced 2024-11-11 20:20:23 -07:00

cmd/dist: enable cgo by default for GOARCH=mips{,le}

Change-Id: I7dd927be1e702e8fd469f4834ab918e0bcd9bafc
Reviewed-on: https://go-review.googlesource.com/34318
Reviewed-by: Cherry Zhang <cherryyz@google.com>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
This commit is contained in:
Vladimir Stefanovic 2016-12-13 22:57:18 +01:00 committed by Ian Lance Taylor
parent ffc836bcbb
commit 627af57b54
2 changed files with 3 additions and 3 deletions

View File

@ -1107,8 +1107,8 @@ var cgoEnabled = map[string]bool{
"linux/arm64": true, "linux/arm64": true,
"linux/ppc64": false, "linux/ppc64": false,
"linux/ppc64le": true, "linux/ppc64le": true,
"linux/mips": false, "linux/mips": true,
"linux/mipsle": false, "linux/mipsle": true,
"linux/mips64": true, "linux/mips64": true,
"linux/mips64le": true, "linux/mips64le": true,
"linux/s390x": true, "linux/s390x": true,

View File

@ -741,7 +741,7 @@ func (t *tester) internalLink() bool {
// Internally linking cgo is incomplete on some architectures. // Internally linking cgo is incomplete on some architectures.
// https://golang.org/issue/10373 // https://golang.org/issue/10373
// https://golang.org/issue/14449 // https://golang.org/issue/14449
if t.goarch == "arm64" || t.goarch == "mips64" || t.goarch == "mips64le" { if t.goarch == "arm64" || t.goarch == "mips64" || t.goarch == "mips64le" || t.goarch == "mips" || t.goarch == "mipsle" {
return false return false
} }
return true return true