use max cpu count switch for msbuild

This commit is contained in:
David Refoua 2022-10-14 20:02:03 +03:30 committed by GitHub
parent 3d0e6b86e3
commit 91d5a25fe9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -119,7 +119,8 @@ Pop-Location
if($Compile) {
Push-Location -Path $launcher
Create-RC $version ($launcher + '\src\version.rc2');
msbuild CmderLauncher.vcxproj /t:Clean,Build /p:configuration=Release
# https://docs.microsoft.com/visualstudio/msbuild/msbuild-command-line-reference
msbuild CmderLauncher.vcxproj /t:Clean,Build /p:configuration=Release /m
if ($LastExitCode -ne 0) {
throw "msbuild failed to build the executable."
}