FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

build: call setlocal in vcbuild.bat · nodejs/node@3d2481e · GitHub

/ node Public

Commit 3d2481e

Browse files
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 <jasnell@gmail.com>
1 parent 0004214 commit 3d2481e

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎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)

Back | FazBrowse Home | New Git URL