From dc62cbd27f18360d6a1d33488a169b673c418b23 Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Fri, 18 May 2018 00:05:19 -0400 Subject: [PATCH] Let's try simultaneous builds in AppVeyor. --- .appveyor.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.appveyor.yml b/.appveyor.yml index a9b296e0..4fc35a8f 100644 --- a/.appveyor.yml +++ b/.appveyor.yml @@ -39,12 +39,16 @@ before_build: - if %linking%==static ( set CMAKE_FLAGS=-DBUILD_SHARED_LIBS=OFF ) - if %compiler%==mingw ( set "outdir=build\out" ) else ( set "outdir=build\out\Release" ) - ren "C:\Program Files\Git\usr\bin\sh.exe" _sh.exe + - set "simultaneous=2" build_script: - md build && cd build + - if %compiler%!=mingw ( set "CFLAGS=/MP%simultaneous% %CFLAGS%" ) + - if %compiler%!=mingw ( set "CPPFLAGS=/MP%simultaneous% %CPPFLAGS%" ) + - if %compiler%!=mingw ( set "CXXFLAGS=/MP%simultaneous% %CXXFLAGS%" ) - cmake -G "%CMAKE_GENERATOR%" %CMAKE_FLAGS% .. - - if %compiler%==mingw ( mingw32-make tester examples ) - else ( msbuild libui.sln /t:Build /p:Configuration=Release /p:Platform=%platform% ) + - if %compiler%==mingw ( mingw32-make -j%simultaneous% tester examples ) + else ( msbuild /verbosity:diagnostic libui.sln /t:Build /p:Configuration=Release /p:Platform=%platform% ) - cd %APPVEYOR_BUILD_FOLDER% after_build: