Add options to parallelize builds.

AppVeyor build servers have two cores, so why not use them?
This commit is contained in:
Carlos O'Ryan 2018-02-28 11:28:57 -05:00
parent 9557d29b7a
commit 3431b69909
No known key found for this signature in database
GPG Key ID: BC4C1DC8B0DEF583

View File

@ -72,7 +72,8 @@ build_script:
if ($LastExitCode -ne 0) {
throw "Exec: $ErrorMessage"
}
& cmake --build . --config $env:configuration
$cmake_parallel = if ($env:generator -eq "MinGW Makefiles") {"-j2"} else {"/m"}
& cmake --build . --config $env:configuration -- $cmake_parallel
if ($LastExitCode -ne 0) {
throw "Exec: $ErrorMessage"
}