1
0
mirror of https://github.com/golang/go synced 2024-10-01 03:18:33 -06:00

cmd/cgo: add support for GOARCH=sparc64

Even though GOARCH=sparc64 is not supported by gc (yet), it is easy to
make cgo already support it.

This e.g. allows to generate Go type definitions for linux/sparc64 in
the golang.org/x/sys/unix package without using gccgo.

Change-Id: I8886c81e7c895a0d93e350d81ed653fb59d95dd8
Reviewed-on: https://go-review.googlesource.com/102555
Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
This commit is contained in:
Tobias Klauser 2018-03-26 16:58:51 +02:00 committed by Tobias Klauser
parent a934e34e87
commit a29e25b82c

View File

@ -165,6 +165,7 @@ var ptrSizeMap = map[string]int64{
"ppc64le": 8, "ppc64le": 8,
"s390": 4, "s390": 4,
"s390x": 8, "s390x": 8,
"sparc64": 8,
} }
var intSizeMap = map[string]int64{ var intSizeMap = map[string]int64{
@ -180,6 +181,7 @@ var intSizeMap = map[string]int64{
"ppc64le": 8, "ppc64le": 8,
"s390": 4, "s390": 4,
"s390x": 8, "s390x": 8,
"sparc64": 8,
} }
var cPrefix string var cPrefix string