Skip to content
Permalink
Browse files

win,build: keep cwd when setting build environment

Fixes: #1545
PR-URL: #1546
Reviewed-By: Bartosz Sosnowski <bartosz@janeasystems.com>
  • Loading branch information
darobs authored and santigimeno committed Sep 20, 2017
1 parent b065362 commit c78caf0b34c18f62a945659eacf63cfb5a3c8396
Showing with 2 additions and 0 deletions.
  1. +2 −0 vcbuild.bat
@@ -55,6 +55,8 @@ set "VSINSTALLDIR="
call tools\vswhere_usability_wrapper.cmd
if "_%VCINSTALLDIR%_" == "__" goto vs-set-2015
@rem Need to clear VSINSTALLDIR for vcvarsall to work as expected.
@rem Keep current working directory after call to vcvarsall
set "VSCMD_START_DIR=%CD%"
set vcvars_call="%VCINSTALLDIR%\Auxiliary\Build\vcvarsall.bat" %vs_toolset%
echo calling: %vcvars_call%
call %vcvars_call%

0 comments on commit c78caf0

Please sign in to comment.