Commit f0c383b8 authored by Elias Naur's avatar Elias Naur Committed by Brad Fitzpatrick

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: default avatarBrad Fitzpatrick <bradfitz@golang.org>
parent fad365ba
......@@ -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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment