From 578e0668627229ad0b9a3c88b61b3489cedb9074 Mon Sep 17 00:00:00 2001 From: LE Manh Cuong Date: Wed, 20 Jun 2018 11:22:37 +0700 Subject: [PATCH] make.bash: don't pass GOOS and GOARCH to cmd/go when finding GOROOT_BOOTSTRAP Fixes #25962 Change-Id: I10d41713f6aef100d7b2c8c976f22d1c8ac376d5 Reviewed-on: https://go-review.googlesource.com/119937 Reviewed-by: Brad Fitzpatrick --- src/make.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/make.bash b/src/make.bash index 4ea5a9a8b5..a28b82a058 100755 --- a/src/make.bash +++ b/src/make.bash @@ -141,7 +141,7 @@ export GOROOT_BOOTSTRAP=${GOROOT_BOOTSTRAP:-$HOME/go1.4} export GOROOT="$(cd .. && pwd)" IFS=$'\n'; for go_exe in $(type -ap go); do if [ ! -x "$GOROOT_BOOTSTRAP/bin/go" ]; then - goroot=$(GOROOT='' "$go_exe" env GOROOT) + goroot=$(GOROOT='' GOOS='' GOARCH='' "$go_exe" env GOROOT) if [ "$goroot" != "$GOROOT" ]; then GOROOT_BOOTSTRAP=$goroot fi