]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/dist: add "s390x" to okgoarch and cgoEnabled
authorMichael Munday <munday@ca.ibm.com>
Fri, 18 Mar 2016 19:39:25 +0000 (15:39 -0400)
committerBrad Fitzpatrick <bradfitz@golang.org>
Mon, 21 Mar 2016 07:31:00 +0000 (07:31 +0000)
Allows the compiler to recognise s390x specific files and s390x
build tags.

Change-Id: I7c62ab7361cf708181b1d9cfbe9b1fcb01be31e0
Reviewed-on: https://go-review.googlesource.com/20872
Reviewed-by: Minux Ma <minux@golang.org>
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>

src/cmd/dist/build.go

index 2712d25e38192ea66f06d9bd892181f7d3b6922f..d6dfa2d3e0d367d5a37213fa98ff689a3a50ee07 100644 (file)
@@ -60,6 +60,7 @@ var okgoarch = []string{
        "mips64le",
        "ppc64",
        "ppc64le",
+       "s390x",
 }
 
 // The known operating systems.
@@ -1097,6 +1098,7 @@ var cgoEnabled = map[string]bool{
        "linux/ppc64le":   true,
        "linux/mips64":    false,
        "linux/mips64le":  false,
+       "linux/s390x":     true,
        "android/386":     true,
        "android/amd64":   true,
        "android/arm":     true,