1
0
mirror of https://github.com/golang/go synced 2024-11-23 14:50:07 -07:00

cmd/dist: only build exec wrappers when cross compiling

Updates #31722

Change-Id: Ib44b46e628e364fff6eacda2b26541db2f0a4261
Reviewed-on: https://go-review.googlesource.com/c/go/+/174701
Run-TryBot: Elias Naur <mail@eliasnaur.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
This commit is contained in:
Elias Naur 2019-05-01 08:35:03 -07:00 committed by Brad Fitzpatrick
parent fad365ba92
commit f0c383b833

View File

@ -1425,6 +1425,9 @@ func cmdbootstrap() {
}
func wrapperPathFor(goos, goarch string) string {
if goos == gohostos && goarch == gohostarch {
return ""
}
switch {
case goos == "android":
return pathf("%s/misc/android/go_android_exec.go", goroot)