mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
cmd/cgo: added support for GOARCH=mips64{,le}
The actual cgo is not supported for now. This is just the cgo command. Change-Id: I25625100ee552971f47e681b7d613cba16a2132f Reviewed-on: https://go-review.googlesource.com/14446 Reviewed-by: Ian Lance Taylor <iant@golang.org> Reviewed-by: Minux Ma <minux@golang.org>
This commit is contained in:
parent
d5cd4ab46a
commit
b4501ac4a5
1 changed files with 20 additions and 16 deletions
|
|
@ -134,25 +134,29 @@ func usage() {
|
|||
}
|
||||
|
||||
var ptrSizeMap = map[string]int64{
|
||||
"386": 4,
|
||||
"amd64": 8,
|
||||
"arm": 4,
|
||||
"arm64": 8,
|
||||
"ppc64": 8,
|
||||
"ppc64le": 8,
|
||||
"s390": 4,
|
||||
"s390x": 8,
|
||||
"386": 4,
|
||||
"amd64": 8,
|
||||
"arm": 4,
|
||||
"arm64": 8,
|
||||
"mips64": 8,
|
||||
"mips64le": 8,
|
||||
"ppc64": 8,
|
||||
"ppc64le": 8,
|
||||
"s390": 4,
|
||||
"s390x": 8,
|
||||
}
|
||||
|
||||
var intSizeMap = map[string]int64{
|
||||
"386": 4,
|
||||
"amd64": 8,
|
||||
"arm": 4,
|
||||
"arm64": 8,
|
||||
"ppc64": 8,
|
||||
"ppc64le": 8,
|
||||
"s390": 4,
|
||||
"s390x": 4,
|
||||
"386": 4,
|
||||
"amd64": 8,
|
||||
"arm": 4,
|
||||
"arm64": 8,
|
||||
"mips64": 8,
|
||||
"mips64le": 8,
|
||||
"ppc64": 8,
|
||||
"ppc64le": 8,
|
||||
"s390": 4,
|
||||
"s390x": 4,
|
||||
}
|
||||
|
||||
var cPrefix string
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue