]> Cypherpunks repositories - gostls13.git/commit
cmd/dist: handle arm64 as a machine hardware name
authorJoel Sing <joel@sing.id.au>
Wed, 24 Apr 2019 13:04:23 +0000 (23:04 +1000)
committerBrad Fitzpatrick <bradfitz@golang.org>
Wed, 24 Apr 2019 16:07:51 +0000 (16:07 +0000)
commita21a6e44616eed6fa6eae0e40864d109390960ed
treef09af8a8f1c52d7f08de94c7bd9601b4e0ffbccc
parente308d41fe51b691c4bb52edc0865ca49f938a0f9
cmd/dist: handle arm64 as a machine hardware name

OpenBSD/arm64 reports itself as arm64 from `uname -m` - this currently
matches as gohostarch=arm, rather than gohostarch=arm64. Correct this
by matching on both aarch64 and arm64 (the alternative would be to use
`uname -p`, however that's likely to cause upset elsewhere).

Updates #31656

Change-Id: I7b2da93495d808e704caf032b3fadc984077769e
Reviewed-on: https://go-review.googlesource.com/c/go/+/173598
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/cmd/dist/main.go