diff options
author | Alex Brainman <alex.brainman@gmail.com> | 2012-02-16 10:44:55 +1100 |
---|---|---|
committer | Alex Brainman <alex.brainman@gmail.com> | 2012-02-16 10:44:55 +1100 |
commit | 32b4758191a89ed6c654f6a7df9c267d72893f27 (patch) | |
tree | ffc7c1e005e88d56c7ceff582bd11d80433969df /src/run.bat | |
parent | 564fa6b42b1eff9eb285dffdd1050ac946c696fc (diff) | |
download | go-32b4758191a89ed6c654f6a7df9c267d72893f27.tar.gz |
build: use setlocal in run.bat
R=golang-dev, rsc
CC=golang-dev
http://codereview.appspot.com/5672061
Diffstat (limited to 'src/run.bat')
-rw-r--r-- | src/run.bat | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/run.bat b/src/run.bat index 3fb118341..f258ae10f 100644 --- a/src/run.bat +++ b/src/run.bat @@ -3,6 +3,13 @@ :: license that can be found in the LICENSE file. @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 rem TODO avoid rebuild if possible |