Skip to content

Commit

Permalink
Add options to parallelize builds.
Browse files Browse the repository at this point in the history
AppVeyor build servers have two cores, so why not use them?
  • Loading branch information
coryan committed Feb 28, 2018
1 parent 9557d29 commit 3431b69
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
Expand Down

0 comments on commit 3431b69

Please sign in to comment.