Skip to content

Commit a29e25b

Browse files
committed
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 <[email protected]> TryBot-Result: Gobot Gobot <[email protected]> Reviewed-by: Brad Fitzpatrick <[email protected]>
1 parent a934e34 commit a29e25b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/cmd/cgo/main.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,7 @@ var ptrSizeMap = map[string]int64{
165165
"ppc64le": 8,
166166
"s390": 4,
167167
"s390x": 8,
168+
"sparc64": 8,
168169
}
169170

170171
var intSizeMap = map[string]int64{
@@ -180,6 +181,7 @@ var intSizeMap = map[string]int64{
180181
"ppc64le": 8,
181182
"s390": 4,
182183
"s390x": 8,
184+
"sparc64": 8,
183185
}
184186

185187
var cPrefix string

0 commit comments

Comments
 (0)