diff options
author | Carlos O'Ryan <coryan@google.com> | 2018-02-28 16:28:57 (GMT) |
---|---|---|
committer | Carlos O'Ryan <coryan@google.com> | 2018-02-28 16:28:57 (GMT) |
commit | 3431b6990980abc12246298644594070e8315f88 (patch) | |
tree | 5685cb06e03dc58f01485ec3d4bf36330772a60f /appveyor.yml | |
parent | 9557d29b7a5f3476ce024ae54410c997b9088f4a (diff) | |
download | googletest-3431b6990980abc12246298644594070e8315f88.zip googletest-3431b6990980abc12246298644594070e8315f88.tar.gz googletest-3431b6990980abc12246298644594070e8315f88.tar.bz2 |
Add options to parallelize builds.refs/pull/1485/head
AppVeyor build servers have two cores, so why not use them?
Diffstat (limited to 'appveyor.yml')
-rw-r--r-- | appveyor.yml | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/appveyor.yml b/appveyor.yml index 8d9cc64..84d9fbc 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -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" } |