Skip to content

Commit

Permalink
Bugfix VS buildscript (#6121)
Browse files Browse the repository at this point in the history
* fix devenv to compile Win32 and x64 depends on %PLATFORM% option

* fix msbuld to be able to execute "clean" and "rebuild"

* add maxcpucount option to enable parallel compile
  • Loading branch information
hiroMTB authored and arturoc committed Sep 8, 2018
1 parent 6127e9f commit e6386bb
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions scripts/vs/setupCommandLine.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -147,11 +147,12 @@ for /d %%X in (..\..\examples\*) do (
echo.

if "%BUILD_TOOL%"=="msbuild" (
if not "%CONFIGURATION%"=="release" (msbuild /nologo /noautoresponse %%Z /p:Configuration=Debug)
if not "%CONFIGURATION%"=="debug" (msbuild /nologo /noautoresponse %%Z /p:Configuration=Release)
if not "%CONFIGURATION%"=="release" (msbuild %%Z /t:%ACTION% /nologo /noautoresponse /maxcpucount /p:Configuration=Debug)
if not "%CONFIGURATION%"=="debug" (msbuild %%Z /t:%ACTION% /nologo /noautoresponse /maxcpucount /p:Configuration=Release)
) else (
if not "%CONFIGURATION%"=="release" (%BUILD_TOOL% "%CD%\%%X\%%Y\%%Z" /%ACTION% Debug /nologo)
if not "%CONFIGURATION%"=="debug" (%BUILD_TOOL% "%CD%\%%X\%%Y\%%Z" /%ACTION% Release /nologo))
if not "%CONFIGURATION%"=="release" (%BUILD_TOOL% "%CD%\%%X\%%Z" /%ACTION% "Debug|%PLATFORM%" /nologo)
if not "%CONFIGURATION%"=="debug" (%BUILD_TOOL% "%CD%\%%X\%%Z" /%ACTION% "Release|%PLATFORM%" /nologo)
)
)
cd ../
)
Expand Down

0 comments on commit e6386bb

Please sign in to comment.