1
0
mirror of https://github.com/golang/go synced 2024-11-08 12:06:18 -07:00

cmd/dist: only build ios_exec wrapper for ios

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>
This commit is contained in:
Cherry Zhang 2020-10-13 20:44:04 -04:00
parent 1bcf6beec5
commit 748c0d87e2

View 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)
}
}