Properly parallelize Windows builds

This commit is contained in:
Gent S 2020-12-28 08:10:23 -05:00 committed by Gent Semaj
parent 888f0e77f9
commit 28543641bb

View File

@ -73,7 +73,7 @@ for:
foreach ($configuration in $configurations) { foreach ($configuration in $configurations) {
Write-Output "Building version $version $configuration" Write-Output "Building version $version $configuration"
Invoke-Expression "msbuild -m:8 build\OpenFusion.sln /p:Configuration=$configuration" Invoke-Expression "msbuild build\OpenFusion.sln /maxcpucount:8 /p:BuildInParallel=true /p:CL_MPCount=8 /p:UseMultiToolTask=true /p:Configuration=$configuration"
if ($LASTEXITCODE -ne "0") { if ($LASTEXITCODE -ne "0") {
Write-Error "msbuild build failed for version $version" -ErrorAction Stop Write-Error "msbuild build failed for version $version" -ErrorAction Stop
} }