Skip to content

Commit cb61585

Browse files
Bryan C. Millsgopherbot
Bryan C. Mills
authored andcommitted
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 <[email protected]> Auto-Submit: Bryan Mills <[email protected]> TryBot-Result: Gopher Robot <[email protected]> Reviewed-by: Austin Clements <[email protected]>
1 parent d75a867 commit cb61585

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/cmd/dist/build.go

+1-4
Original file line numberDiff line numberDiff line change
@@ -1470,12 +1470,9 @@ func cmdbootstrap() {
14701470
if vflag > 0 {
14711471
xprintf("\n")
14721472
}
1473-
xprintf("Building packages and commands for host, %s/%s.\n", goos, goarch)
1474-
goInstall(nil, goBootstrap, "std")
1473+
xprintf("Building commands for host, %s/%s.\n", goos, goarch)
14751474
goInstall(toolenv, goBootstrap, "cmd")
1476-
checkNotStale(nil, goBootstrap, "std")
14771475
checkNotStale(toolenv, goBootstrap, "cmd")
1478-
checkNotStale(nil, gorootBinGo, "std")
14791476
checkNotStale(toolenv, gorootBinGo, "cmd")
14801477

14811478
timelog("build", "target toolchain")

0 commit comments

Comments
 (0)