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:
parent
ffc836bcbb
commit
627af57b54
4
src/cmd/dist/build.go
vendored
4
src/cmd/dist/build.go
vendored
@ -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,
|
||||||
|
2
src/cmd/dist/test.go
vendored
2
src/cmd/dist/test.go
vendored
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user