Skip to content

Commit 3d2481e

Browse files
danbevMylesBorins
authored andcommitted
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: #15754 Reviewed-By: James M Snell <[email protected]>
1 parent 0004214 commit 3d2481e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

vcbuild.bat

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
@echo off
22

3+
setlocal EnableExtensions
4+
35
cd %~dp0
46

57
if /i "%1"=="help" goto help

0 commit comments

Comments
 (0)