summaryrefslogtreecommitdiff
path: root/vcbuild.bat
diff options
context:
space:
mode:
authorDaniel Bevenius <daniel.bevenius@gmail.com>2017-10-02 05:23:35 -0700
committerDaniel Bevenius <daniel.bevenius@gmail.com>2017-10-05 09:18:08 +0200
commitb9a55a93c91fb7fd7ac81e182f843f28014179ca (patch)
tree7cbe6c435a1292171f85064948e05e2152266eb9 /vcbuild.bat
parent212b12c155706b1b21bd1c48a7b525c20c2aacbf (diff)
downloadandroid-node-v8-b9a55a93c91fb7fd7ac81e182f843f28014179ca.tar.gz
android-node-v8-b9a55a93c91fb7fd7ac81e182f843f28014179ca.tar.bz2
android-node-v8-b9a55a93c91fb7fd7ac81e182f843f28014179ca.zip
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>
Diffstat (limited to 'vcbuild.bat')
-rw-r--r--vcbuild.bat2
1 files changed, 2 insertions, 0 deletions
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