]> Cypherpunks.ru repositories - gostls13.git/commitdiff
[dev.cc] build: do not pass GOHOSTOS and GOHOSTARCH to Go 1.4 build
authorRuss Cox <rsc@golang.org>
Wed, 14 Jan 2015 20:14:54 +0000 (15:14 -0500)
committerRuss Cox <rsc@golang.org>
Wed, 14 Jan 2015 20:17:20 +0000 (20:17 +0000)
Go 1.4 should build what it knows how to build.
GOHOSTOS and GOHOSTARCH are for the Go 1.5 build only.

Change-Id: Id0f367f03485100a896e61cfdace4ac44a22e16d
Reviewed-on: https://go-review.googlesource.com/2818
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/make.bash
src/make.bat
src/make.rc

index 2b07ee7780f3cd3d96ddf15a8cc3881f4dac914d..c8573c9954b1e10be028405909ff1ced226b0d82 100755 (executable)
@@ -121,7 +121,7 @@ if [ ! -x "$GOROOT_BOOTSTRAP/bin/go" ]; then
        echo "Set \$GOROOT_BOOTSTRAP to a working Go tree >= Go 1.4." >&2
 fi
 rm -f cmd/dist/dist
-GOROOT="$GOROOT_BOOTSTRAP" GOOS="$GOHOSTOS" GOARCH="$GOHOSTARCH" "$GOROOT_BOOTSTRAP/bin/go" build -o cmd/dist/dist ./cmd/dist
+GOROOT="$GOROOT_BOOTSTRAP" GOOS="" GOARCH="" "$GOROOT_BOOTSTRAP/bin/go" build -o cmd/dist/dist ./cmd/dist
 
 # -e doesn't propagate out of eval, so check success by hand.
 eval $(./cmd/dist/dist env -p || echo FAIL=true)
index 62401b622d194c93fef3c16aaa789bea0ecc79c1..fab9c88ff6e6f243168549e24e6dcbb667953caa 100644 (file)
@@ -57,8 +57,8 @@ if "x%GOROOT_BOOTSTRAP%"=="x" set GOROOT_BOOTSTRAP=%HOMEDRIVE%%HOMEPATH%\Go1.4
 if not exist "%GOROOT_BOOTSTRAP%\bin\go.exe" goto bootstrapfail
 setlocal
 set GOROOT=%GOROOT_BOOTSTRAP%
-set GOOS=%GOHOSTOS%
-set GOARCH=%GOHOSTARCH%
+set GOOS=
+set GOARCH=
 "%GOROOT_BOOTSTRAP%\bin\go" build -o cmd\dist\dist.exe .\cmd\dist
 endlocal
 if errorlevel 1 goto fail
index 761b93e99539a6e2e89d2f0bc2e9977e66ef2f33..5fe30aced7ca2e5ba3ec400009b1946313e66437 100755 (executable)
@@ -58,7 +58,7 @@ if(! test -x $GOROOT_BOOTSTRAP/bin/go){
        exit bootstrap
 }
 rm -f cmd/dist/dist
-GOROOT=$GOROOT_BOOTSTRAP GOOS=$GOHOSTOS GOARCH=$GOHOSTARCH $GOROOT_BOOTSTRAP/bin/go build -o cmd/dist/dist ./cmd/dist
+GOROOT=$GOROOT_BOOTSTRAP GOOS='' GOARCH='' $GOROOT_BOOTSTRAP/bin/go build -o cmd/dist/dist ./cmd/dist
 
 eval `{./cmd/dist/dist env -9}
 echo