]> Cypherpunks repositories - gostls13.git/commit
cmd/internal/objabi: make GOEXPERIMENT=none mean "no experiment flags"
authorAustin Clements <austin@google.com>
Fri, 9 Apr 2021 18:00:59 +0000 (14:00 -0400)
committerAustin Clements <austin@google.com>
Fri, 9 Apr 2021 19:11:12 +0000 (19:11 +0000)
commit756e2b1529592ffbe1760932d14f8e6eae3fda06
tree2584f3a8da061c380af1df19a0f0af2dbd459548
parentc3faff7f2d62a81d612ed46204c2e6bd5f460f01
cmd/internal/objabi: make GOEXPERIMENT=none mean "no experiment flags"

CL 307819 made GOEXPERIMENT=none mean "restore baseline experiment
configuration". This is arguably what you want because any deviation
from the baseline configuration is an "experiment". However, cmd/dist
requires this to mean "disable all experiment flags", even if some
flags are enabled in the baseline configuration, because its build
system doesn't know how to deal with any enabled experiment flags.

Hence, make GOEXPERIMENT=none mean "disable all experiment flags"
again.

Change-Id: I1e282177c3f62a55eb9c36566c75672808dae9b6
Reviewed-on: https://go-review.googlesource.com/c/go/+/309010
Trust: Austin Clements <austin@google.com>
Run-TryBot: Austin Clements <austin@google.com>
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
src/cmd/internal/objabi/exp.go