]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/dist: enable cgo by default for GOARCH=mips{,le}
authorVladimir Stefanovic <vladimir.stefanovic@imgtec.com>
Tue, 13 Dec 2016 21:57:18 +0000 (22:57 +0100)
committerIan Lance Taylor <iant@golang.org>
Thu, 15 Dec 2016 01:31:50 +0000 (01:31 +0000)
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>

src/cmd/dist/build.go
src/cmd/dist/test.go

index 6fb788456024c863ce8e3cc800567633637b897d..4d0b1a0b4100640ee5e39a3e8d1a96bbb29cf0cd 100644 (file)
@@ -1107,8 +1107,8 @@ var cgoEnabled = map[string]bool{
        "linux/arm64":     true,
        "linux/ppc64":     false,
        "linux/ppc64le":   true,
-       "linux/mips":      false,
-       "linux/mipsle":    false,
+       "linux/mips":      true,
+       "linux/mipsle":    true,
        "linux/mips64":    true,
        "linux/mips64le":  true,
        "linux/s390x":     true,
index 054f4dde452e993481a635e71589ee85e3d5298e..1d5c9cee498febe0143cbf3d6261060d885083bd 100644 (file)
@@ -741,7 +741,7 @@ func (t *tester) internalLink() bool {
        // Internally linking cgo is incomplete on some architectures.
        // https://golang.org/issue/10373
        // 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 true