Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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%
  • Loading branch information
danbev committed Oct 2, 2017
commit 2362c252c666991b9ca6a0074a224faaeff5d054
2 changes: 2 additions & 0 deletions vcbuild.bat
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
@echo off

setlocal EnableExtensions

cd %~dp0

if /i "%1"=="help" goto help
Expand Down