win,build: keep cwd when setting build environment
Fixes: https://github.com/libuv/libuv/issues/1545 PR-URL: https://github.com/libuv/libuv/pull/1546 Reviewed-By: Bartosz Sosnowski <bartosz@janeasystems.com>
This commit is contained in:
parent
b0653625e2
commit
c78caf0b34
@ -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%
|
||||
|
||||
Loading…
Reference in New Issue
Block a user