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:
parent
fad365ba92
commit
f0c383b833
3
src/cmd/dist/build.go
vendored
3
src/cmd/dist/build.go
vendored
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user