diff options
author | Nikolai Vavilov <vvnicholas@gmail.com> | 2017-07-16 16:12:47 +0300 |
---|---|---|
committer | Nikolai Vavilov <vvnicholas@gmail.com> | 2017-07-17 20:00:42 +0300 |
commit | be3f3d40e2170ab880062641d829e306c80f4504 (patch) | |
tree | 823607af6af65cc44e8580caab86f555121e0b8a /vcbuild.bat | |
parent | a6cec04aaaf4e0d6d51adb7f4485e6f1a69f6d5d (diff) | |
download | android-node-v8-be3f3d40e2170ab880062641d829e306c80f4504.tar.gz android-node-v8-be3f3d40e2170ab880062641d829e306c80f4504.tar.bz2 android-node-v8-be3f3d40e2170ab880062641d829e306c80f4504.zip |
build: prevent VsDevCmd.bat from changing cwd
VsDevCmd.bat changes the current working directory to
"%USERPROFILE%\Source" if it exists. Setting VSCMD_START_DIR overrides
this behavior.
PR-URL: https://github.com/nodejs/node/pull/14303
Fixes: https://github.com/nodejs/node/issues/14300
Refs: https://developercommunity.visualstudio.com/content/problem/26780/vsdevcmdbat-changes-the-current-working-directory.html
Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com>
Reviewed-By: Refael Ackermann <refack@gmail.com>
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'vcbuild.bat')
-rw-r--r-- | vcbuild.bat | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/vcbuild.bat b/vcbuild.bat index 03cf82565d..3d35798a08 100644 --- a/vcbuild.bat +++ b/vcbuild.bat @@ -176,6 +176,8 @@ if "_%VisualStudioVersion%_" == "_15.0_" if "_%VSCMD_ARG_TGT_ARCH%_"=="_%target_ set "VSINSTALLDIR=" call tools\msvs\vswhere_usability_wrapper.cmd if "_%VCINSTALLDIR%_" == "__" goto vs-set-2015 +@rem prevent VsDevCmd.bat from changing the current working directory +set "VSCMD_START_DIR=%CD%" set vcvars_call="%VCINSTALLDIR%\Auxiliary\Build\vcvarsall.bat" %vcvarsall_arg% echo calling: %vcvars_call% call %vcvars_call% |