]> Cypherpunks.ru repositories - gostls13.git/commit
make.bash, make.rc: fix GOROOT detection when GOEXPERIMENT is set
authorRuss Cox <rsc@golang.org>
Fri, 9 Dec 2022 20:09:46 +0000 (15:09 -0500)
committerGopher Robot <gobot@golang.org>
Tue, 17 Jan 2023 22:30:56 +0000 (22:30 +0000)
commitdbe327a640b5ac4d6c55b5d966224d3095f1cdde
treededead79d4b5839be5ef1860a4076006f7c8aa9c
parent627765a861c6762d15cfdfeb2f7e4872523edbe4
make.bash, make.rc: fix GOROOT detection when GOEXPERIMENT is set

We need to clear GOEXPERIMENT any time we are invoking a bootstrap
toolchain. One line missed the clearing of GOEXPERIMENT.

There were three different lines using different syntaxes and subtly
different sets of variables being cleared, so hoist them into a function
so it's all in one place.

Also quote $GOROOT_BOOTSTRAP consistently.

Change-Id: I6c5a5d70c694c24705bbc61298b28ae906c0cf6c
Reviewed-on: https://go-review.googlesource.com/c/go/+/456635
Reviewed-by: Bryan Mills <bcmills@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Russ Cox <rsc@golang.org>
Auto-Submit: Russ Cox <rsc@golang.org>
src/make.bash
src/make.rc