mirror of
https://github.com/golang/go
synced 2024-11-17 21:54:49 -07:00
cmd/dist, go/types: add support for GOARCH=sparc64
This is needed in addition to CL 102555 in order to be able to generate Go type definitions for linux/sparc64 in the golang.org/x/sys/unix package. Change-Id: I928185e320572fecb0c89396f871ea16cba8b9a6 Reviewed-on: https://go-review.googlesource.com/132155 Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org>
This commit is contained in:
parent
7bee8085da
commit
d8c8a14218
2
src/cmd/dist/build.go
vendored
2
src/cmd/dist/build.go
vendored
@ -69,6 +69,7 @@ var okgoarch = []string{
|
||||
"ppc64le",
|
||||
"riscv64",
|
||||
"s390x",
|
||||
"sparc64",
|
||||
"wasm",
|
||||
}
|
||||
|
||||
@ -1407,6 +1408,7 @@ var cgoEnabled = map[string]bool{
|
||||
"linux/mips64le": true,
|
||||
"linux/riscv64": true,
|
||||
"linux/s390x": true,
|
||||
"linux/sparc64": true,
|
||||
"android/386": true,
|
||||
"android/amd64": true,
|
||||
"android/arm": true,
|
||||
|
@ -192,9 +192,9 @@ func vetPlatforms(pp []platform) {
|
||||
}
|
||||
|
||||
func (p platform) vet() {
|
||||
if p.os == "linux" && p.arch == "riscv64" {
|
||||
// TODO(tklauser): enable as soon as the riscv64 port has fully landed
|
||||
fmt.Println("skipping linux/riscv64")
|
||||
if p.os == "linux" && (p.arch == "riscv64" || p.arch == "sparc64") {
|
||||
// TODO(tklauser): enable as soon as these ports have fully landed
|
||||
fmt.Printf("skipping %s/%s\n", p.os, p.arch)
|
||||
return
|
||||
}
|
||||
|
||||
|
@ -169,6 +169,7 @@ var gcArchSizes = map[string]*StdSizes{
|
||||
"ppc64le": {8, 8},
|
||||
"riscv64": {8, 8},
|
||||
"s390x": {8, 8},
|
||||
"sparc64": {8, 8},
|
||||
"wasm": {8, 8},
|
||||
// When adding more architectures here,
|
||||
// update the doc string of SizesFor below.
|
||||
@ -179,7 +180,7 @@ var gcArchSizes = map[string]*StdSizes{
|
||||
//
|
||||
// Supported architectures for compiler "gc":
|
||||
// "386", "arm", "arm64", "amd64", "amd64p32", "mips", "mipsle",
|
||||
// "mips64", "mips64le", "ppc64", "ppc64le", "riscv64", "s390x", "wasm".
|
||||
// "mips64", "mips64le", "ppc64", "ppc64le", "riscv64", "s390x", "sparc64", "wasm".
|
||||
func SizesFor(compiler, arch string) Sizes {
|
||||
if compiler != "gc" {
|
||||
return nil
|
||||
|
Loading…
Reference in New Issue
Block a user