aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCherry Zhang <cherryyz@google.com>2020-10-13 20:44:04 -0400
committerCherry Zhang <cherryyz@google.com>2020-10-15 20:10:46 +0000
commit748c0d87e23eaae0ba133d2f613b82c009ac8cb4 (patch)
treedf725d58b9e925b19080020fb1f53af5343121f0 /src
parent1bcf6beec53ae811490fcd0ac29328b12b53702c (diff)
downloadgo-748c0d87e23eaae0ba133d2f613b82c009ac8cb4.tar.xz
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>
Diffstat (limited to 'src')
-rw-r--r--src/cmd/dist/build.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cmd/dist/build.go b/src/cmd/dist/build.go
index 69a66abd2d..398ed6bce1 100644
--- a/src/cmd/dist/build.go
+++ b/src/cmd/dist/build.go
@@ -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)
}
}