]> Cypherpunks repositories - gostls13.git/commit
cmd/dist: add serial/small build option for GOMAXPROCS=1
authorDavid Chase <drchase@google.com>
Mon, 21 Nov 2022 21:00:43 +0000 (16:00 -0500)
committerDavid Chase <drchase@google.com>
Mon, 21 Nov 2022 21:55:53 +0000 (21:55 +0000)
commit089dcd7b07f047e29d8a2f6e3a68aba00ec78de6
treeda908dd78f95c4f51d8586c00c6d48bc63ef6dde
parent85a2c19b328081c3fbcd1fa3db9a56d708a25c68
cmd/dist: add serial/small build option for GOMAXPROCS=1

If GOMAXPROCS=1, force serial execution, which is better for
debugging build problems and also minimizes footprint, if that
happens to matter.

This wasn't good when the bootstrap was 1.4 because there
default GOMAXPROCS=1, but that is no longer the bootstrap
version.

Change-Id: I637e25c8acb4758795fceef63921eda359a7be29
Reviewed-on: https://go-review.googlesource.com/c/go/+/452556
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: David Chase <drchase@google.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
src/cmd/dist/main.go