Skip to content

Commit

Permalink
[r3129] Исправлена невозможность сборки в VS2017 в некоторых случаях.…
Browse files Browse the repository at this point in the history
… Вызов vcvarsall.bat может приводить к незапланированной смене текущего каталога.
  • Loading branch information
v0lt committed Nov 18, 2017
1 parent 68e6751 commit 65265ef
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions build.bat
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,8 @@ IF /I "%BUILDPLATFORM%" == "Win32" (GOTO Win32) ELSE IF /I "%BUILDPLATFORM%" ==

:Win32
CALL "%VCVARS%" x86 > nul
REM again set the source directory (fix possible bug in VS2017)
CD /D %~dp0

IF /I "%CONFIG%" == "Filters" (
CALL :SubFilters Win32
Expand Down Expand Up @@ -161,6 +163,8 @@ IF /I "%CONFIG%" == "All" (
IF /I "%BUILDPLATFORM%" == "Win32" GOTO End

CALL "%VCVARS%" %x64_type% > nul
REM again set the source directory (fix possible bug in VS2017)
CD /D %~dp0

IF /I "%CONFIG%" == "Filters" (
CALL :SubFilters x64
Expand Down

0 comments on commit 65265ef

Please sign in to comment.