1
0
mirror of https://github.com/golang/go synced 2024-11-11 23:10:23 -07:00

cmd/dist: detect gohostarch on riscv64 hosts

Updates #27532

Change-Id: I66c194499bb7b831b569c66d0736fa7205eedd80
Reviewed-on: https://go-review.googlesource.com/c/go/+/215837
Reviewed-by: Cherry Zhang <cherryyz@google.com>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
This commit is contained in:
Joel Sing 2020-01-23 03:30:14 +11:00 committed by Brad Fitzpatrick
parent 6718cb617f
commit b4f15e79af

View File

@ -122,6 +122,8 @@ func main() {
if elfIsLittleEndian(os.Args[0]) {
gohostarch = "mipsle"
}
case strings.Contains(out, "riscv64"):
gohostarch = "riscv64"
case strings.Contains(out, "s390x"):
gohostarch = "s390x"
case gohostos == "darwin":