Skip to content

Commit b4f15e7

Browse files
4a6f656cbradfitz
authored andcommitted
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 <[email protected]> Reviewed-by: Brad Fitzpatrick <[email protected]>
1 parent 6718cb6 commit b4f15e7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Diff for: src/cmd/dist/main.go

+2
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,8 @@ func main() {
122122
if elfIsLittleEndian(os.Args[0]) {
123123
gohostarch = "mipsle"
124124
}
125+
case strings.Contains(out, "riscv64"):
126+
gohostarch = "riscv64"
125127
case strings.Contains(out, "s390x"):
126128
gohostarch = "s390x"
127129
case gohostos == "darwin":

0 commit comments

Comments
 (0)