]> Cypherpunks.ru repositories - gostls13.git/commit
[dev.regabi] cmd/go: Use GOMAXPROCS to limit default build, compile parallelism
authorDavid Chase <drchase@google.com>
Wed, 14 Oct 2020 17:05:33 +0000 (13:05 -0400)
committerDavid Chase <drchase@google.com>
Wed, 27 Jan 2021 21:55:30 +0000 (21:55 +0000)
commit667e08ba8ccce4c00b0cde4a777030167295faf9
tree69c47ebbf5a0cb561c8d918220504fa2c3a11ce9
parent9b636feafeecd627a72d95ba1fa637e162143027
[dev.regabi] cmd/go: Use GOMAXPROCS to limit default build, compile parallelism

When people want deterministic/single-process builds, they probably
assume that GOMAXPROCS=1 will do that.  It currently does not,
neither for build parallelism nor for compiler internal parallelism.
(Current incantation for that is "go build -p=1 -gcflags=all=-c=1 ... ")

This CL makes
  "GOMAXPROCS=1 go build ..."
behave like
  "go build -p=1 -gcflags=all=-c=1 ... "

RELNOTE=yes

Change-Id: I9cfe50b7deee7334d2f1057b58385f6c98547b9f
Reviewed-on: https://go-review.googlesource.com/c/go/+/284695
Trust: David Chase <drchase@google.com>
Run-TryBot: David Chase <drchase@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Jeremy Faller <jeremy@golang.org>
src/cmd/go/alldocs.go
src/cmd/go/internal/cfg/cfg.go
src/cmd/go/internal/work/build.go
src/cmd/go/internal/work/gc.go