]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/dist: only build ios_exec wrapper for ios
authorCherry Zhang <cherryyz@google.com>
Wed, 14 Oct 2020 00:44:04 +0000 (20:44 -0400)
committerCherry Zhang <cherryyz@google.com>
Thu, 15 Oct 2020 20:10:46 +0000 (20:10 +0000)
Not for darwin/arm64.

Updates #38485.

Change-Id: I08a5f00fd77f20c9c483755a36755a63cf10aa1a
Reviewed-on: https://go-review.googlesource.com/c/go/+/262558
Trust: Cherry Zhang <cherryyz@google.com>
Run-TryBot: Cherry Zhang <cherryyz@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Austin Clements <austin@google.com>
src/cmd/dist/build.go

index 69a66abd2d26a482e43334a404068df8d41572e2..398ed6bce1158d0a9d7c2593715706199b6dca52 100644 (file)
@@ -1462,8 +1462,8 @@ func wrapperPathFor(goos, goarch string) string {
                if gohostos != "android" {
                        return pathf("%s/misc/android/go_android_exec.go", goroot)
                }
-       case (goos == "darwin" || goos == "ios") && goarch == "arm64":
-               if gohostos != "darwin" || gohostarch != "arm64" {
+       case goos == "ios":
+               if gohostos != "ios" {
                        return pathf("%s/misc/ios/go_ios_exec.go", goroot)
                }
        }