fix c/vs.bat for Visual Studio 2017 when %USERPROFILE%\Source exists

original commit: 9289177cc07782674c17555a37fd0e769da742ae
This commit is contained in:
Bob Burger 2017-08-15 17:07:12 -04:00
parent 6c4c4d0b12
commit be634ff738

View File

@ -29,4 +29,6 @@ set INCLUDE=
set LIB=
set LIBPATH=
:: Visual Studio 2017's vcvarsall.bat changes the directory to %USERPROFILE%\Source if the directory exists. See https://developercommunity.visualstudio.com/content/problem/26780/vsdevcmdbat-changes-the-current-working-directory.html
set VSCMD_START_DIR=%CD%
"%BATDIR%\vcvarsall.bat" %1