From: Bryan C. Mills Date: Wed, 11 Jan 2023 22:27:56 +0000 (-0500) Subject: cmd/dist: skip building std for the host when cross-compiling X-Git-Tag: go1.21rc1~1733 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=cb61585e870e2967d965d673c98f9d9a45b6e855;p=gostls13.git cmd/dist: skip building std for the host when cross-compiling The purpose of building the host toolchain is so that we can use it to build and test the target configuration. The host configuration should already be tested separately (with its own builder), so we do not need to build the parts of that configuration that are not relevant to the task of building and testing the target configuration. Updates #47257. Change-Id: I814778d2d65b1f2887c9419232b5bfd4068f58af Reviewed-on: https://go-review.googlesource.com/c/go/+/461676 Run-TryBot: Bryan Mills Auto-Submit: Bryan Mills TryBot-Result: Gopher Robot Reviewed-by: Austin Clements --- diff --git a/src/cmd/dist/build.go b/src/cmd/dist/build.go index b806b87797..72c4c02bf2 100644 --- a/src/cmd/dist/build.go +++ b/src/cmd/dist/build.go @@ -1470,12 +1470,9 @@ func cmdbootstrap() { if vflag > 0 { xprintf("\n") } - xprintf("Building packages and commands for host, %s/%s.\n", goos, goarch) - goInstall(nil, goBootstrap, "std") + xprintf("Building commands for host, %s/%s.\n", goos, goarch) goInstall(toolenv, goBootstrap, "cmd") - checkNotStale(nil, goBootstrap, "std") checkNotStale(toolenv, goBootstrap, "cmd") - checkNotStale(nil, gorootBinGo, "std") checkNotStale(toolenv, gorootBinGo, "cmd") timelog("build", "target toolchain")