Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
Showing
with
2 additions
and
0 deletions.
-
+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% |
|
|
|