From 748c0d87e23eaae0ba133d2f613b82c009ac8cb4 Mon Sep 17 00:00:00 2001 From: Cherry Zhang Date: Tue, 13 Oct 2020 20:44:04 -0400 Subject: [PATCH] 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 Run-TryBot: Cherry Zhang TryBot-Result: Go Bot Reviewed-by: Austin Clements --- src/cmd/dist/build.go | 4 ++-- 1 file 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) } }