]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: tweak compiler concurrency
authorDavid Chase <drchase@google.com>
Wed, 2 Nov 2022 21:21:09 +0000 (17:21 -0400)
committerDavid Chase <drchase@google.com>
Fri, 4 Nov 2022 20:29:32 +0000 (20:29 +0000)
commitb725622ceb3d537334e1a3bb1723b1e939a40823
treefef9be2a278e9be0bf7b934b526ea043d0dfe083
parent1bcfdc777ad38bbb4faec8e1db2eaa92873f4e10
cmd/compile: tweak compiler concurrency

Default concurrency is now GOMAXPROCS, though this is normally
reduced to 4 by the go build commmand.

If compiler flags don't permit concurrency, silently
turn it down instead of failing the compilation.

Change-Id: Id26cc3214e0ca402d60f915e98276a58d809e097
Reviewed-on: https://go-review.googlesource.com/c/go/+/447358
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Keith Randall <khr@golang.org>
Run-TryBot: David Chase <drchase@google.com>
Reviewed-by: Keith Randall <khr@google.com>
src/cmd/compile/internal/base/flag.go