]> git.feebdaed.xyz Git - 0xmirror/go.git/commit
cmd/go: remove experiment checks for compile -c
authormatloob <matloob@golang.org>
Wed, 26 Nov 2025 15:30:34 +0000 (10:30 -0500)
committerGopher Robot <gobot@golang.org>
Wed, 26 Nov 2025 22:44:25 +0000 (14:44 -0800)
commit3353c100bb97954edc11c1bc07fd07db9d4bc567
tree7fc4b9aca37393b44889d7ae10116f7b77f7c09d
parent301d9f9b52b9b5dbc57151f680a64d1bf85e6d43
cmd/go: remove experiment checks for compile -c

There's a comment that we should test that compile -c is compatible with
the fieldtrack and preemptibleloops experiments and then remove the
check disabling -c when those experiments are enabled.

I tested this and the tests pass with fieldtrack (with the exception of one go command test that makes the assumption that fieldtrack is off), and the preemptibleloops experiment is already broken without this experiment.

Also remove the check for the value of the GO19CONCURRENTCOMPILATION
environment variable. The compiler concurrency can be limited by setting
GOMAXPROCS.

Change-Id: I0c02745de463ea572673648061185cd76a6a6964
Reviewed-on: https://go-review.googlesource.com/c/go/+/724680
Reviewed-by: Alan Donovan <adonovan@google.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
Auto-Submit: Michael Matloob <matloob@golang.org>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
src/cmd/go/internal/work/build.go
src/cmd/go/internal/work/gc.go