1
0
mirror of https://github.com/golang/go synced 2024-11-22 05:14:40 -07:00

build: use setlocal in run.bat

R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/5672061
This commit is contained in:
Alex Brainman 2012-02-16 10:44:55 +11:00
parent 32cb495b18
commit 034c72a557
2 changed files with 8 additions and 1 deletions

View File

@ -13,7 +13,7 @@ goto end
call make.bat --no-banner --no-local call make.bat --no-banner --no-local
if %GOBUILDFAIL%==1 goto end if %GOBUILDFAIL%==1 goto end
call run.bat --no-rebuild call run.bat --no-rebuild --no-local
if %GOBUILDFAIL%==1 goto end if %GOBUILDFAIL%==1 goto end
go tool dist banner go tool dist banner

View File

@ -3,6 +3,13 @@
:: license that can be found in the LICENSE file. :: license that can be found in the LICENSE file.
@echo off @echo off
:: Keep environment variables within this script
:: unless invoked with --no-local.
if x%1==x--no-local goto nolocal
if x%2==x--no-local goto nolocal
setlocal
:nolocal
set GOBUILDFAIL=0 set GOBUILDFAIL=0
rem TODO avoid rebuild if possible rem TODO avoid rebuild if possible