build: call setlocal in vcbuild.bat

Currently the variables set in vcbuild.bat are mostly global and
escape/leak out into the calling process. For example, running
vcbuild.bat test and then echoing the config variable gives:

vcbuild.bat test
...
echo %config%
Release

After this change the same command give:
vcbuild.bat test
...
echo %config%
%config%

PR-URL: https://github.com/nodejs/node/pull/15754
Reviewed-By: James M Snell <jasnell@gmail.com>
This commit is contained in:
Daniel Bevenius 2017-10-02 05:23:35 -07:00
Родитель 212b12c155
Коммит b9a55a93c9
1 изменённых файлов: 2 добавлений и 0 удалений

Просмотреть файл

@ -1,5 +1,7 @@
@echo off
setlocal EnableExtensions
cd %~dp0
if /i "%1"=="help" goto help