From b9a55a93c91fb7fd7ac81e182f843f28014179ca Mon Sep 17 00:00:00 2001 From: Daniel Bevenius Date: Mon, 2 Oct 2017 05:23:35 -0700 Subject: [PATCH] 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 --- vcbuild.bat | 2 ++ 1 file changed, 2 insertions(+) diff --git a/vcbuild.bat b/vcbuild.bat index 11ca846ae6..8f03552a7d 100644 --- a/vcbuild.bat +++ b/vcbuild.bat @@ -1,5 +1,7 @@ @echo off +setlocal EnableExtensions + cd %~dp0 if /i "%1"=="help" goto help