]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/dist: detect gohostarch on ios/arm64
authorCherry Zhang <cherryyz@google.com>
Sat, 3 Oct 2020 01:57:24 +0000 (21:57 -0400)
committerCherry Zhang <cherryyz@google.com>
Mon, 5 Oct 2020 15:39:19 +0000 (15:39 +0000)
Add a case for gohostos == "ios" along with "darwin".

Updates #38485.

Change-Id: Ic7310e6c97d405f78a5e5db1a639860455e61327
Reviewed-on: https://go-review.googlesource.com/c/go/+/259337
Trust: Cherry Zhang <cherryyz@google.com>
Run-TryBot: Cherry Zhang <cherryyz@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
src/cmd/dist/main.go

index 224b6c0c3e62f4879dc48fa3cf4720aeaa325ee9..37fc5223563e9a96c743dfefa085981555e7b93e 100644 (file)
@@ -129,7 +129,7 @@ func main() {
                        gohostarch = "riscv64"
                case strings.Contains(out, "s390x"):
                        gohostarch = "s390x"
-               case gohostos == "darwin":
+               case gohostos == "darwin", gohostos == "ios":
                        if strings.Contains(run("", CheckExit, "uname", "-v"), "RELEASE_ARM64_") {
                                gohostarch = "arm64"
                        }