Skip to content

Commit 3431b69

Browse files
committedFeb 28, 2018
Add options to parallelize builds.
AppVeyor build servers have two cores, so why not use them?
1 parent 9557d29 commit 3431b69

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
 

‎appveyor.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,8 @@ build_script:
7272
if ($LastExitCode -ne 0) {
7373
throw "Exec: $ErrorMessage"
7474
}
75-
& cmake --build . --config $env:configuration
75+
$cmake_parallel = if ($env:generator -eq "MinGW Makefiles") {"-j2"} else {"/m"}
76+
& cmake --build . --config $env:configuration -- $cmake_parallel
7677
if ($LastExitCode -ne 0) {
7778
throw "Exec: $ErrorMessage"
7879
}

0 commit comments

Comments
 (0)
Please sign in to comment.