Skip to content

Commit f0c383b

Browse files
eliasnaurbradfitz
authored andcommitted
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 <[email protected]> TryBot-Result: Gobot Gobot <[email protected]> Reviewed-by: Brad Fitzpatrick <[email protected]>
1 parent fad365b commit f0c383b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/cmd/dist/build.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1425,6 +1425,9 @@ func cmdbootstrap() {
14251425
}
14261426

14271427
func wrapperPathFor(goos, goarch string) string {
1428+
if goos == gohostos && goarch == gohostarch {
1429+
return ""
1430+
}
14281431
switch {
14291432
case goos == "android":
14301433
return pathf("%s/misc/android/go_android_exec.go", goroot)

0 commit comments

Comments
 (0)