diff options
author | Alex Brainman <alex.brainman@gmail.com> | 2012-02-16 10:26:01 +1100 |
---|---|---|
committer | Alex Brainman <alex.brainman@gmail.com> | 2012-02-16 10:26:01 +1100 |
commit | 32cb495b185b50b08aea7fd9402ddf3152f1fda8 (patch) | |
tree | 4a2406bef4030456deb86c2598c2b8b4ef67c858 /src/all.bat | |
parent | 79db6ada48d09dbbf47c4fb0f49ebbd2a044a35b (diff) | |
download | go-32cb495b185b50b08aea7fd9402ddf3152f1fda8.tar.gz go-32cb495b185b50b08aea7fd9402ddf3152f1fda8.zip |
build: keep environment variable changes local during Windows build
R=bradfitz, rsc
CC=golang-dev
https://golang.org/cl/5673048
Diffstat (limited to 'src/all.bat')
-rw-r--r-- | src/all.bat | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/all.bat b/src/all.bat index 7792cf1746..980f937efc 100644 --- a/src/all.bat +++ b/src/all.bat @@ -3,20 +3,19 @@ :: license that can be found in the LICENSE file. @echo off +setlocal + if exist make.bat goto ok echo all.bat must be run from go\src :: cannot exit: would kill parent command interpreter goto end :ok -set GOOLDPATH=%PATH% - -call make.bat --no-banner +call make.bat --no-banner --no-local if %GOBUILDFAIL%==1 goto end call run.bat --no-rebuild if %GOBUILDFAIL%==1 goto end go tool dist banner :end -set PATH=%GOOLDPATH% if x%GOBUILDEXIT%==x1 exit %GOBUILDFAIL% |