diff options
Diffstat (limited to 'script/build-libgit2.sh')
| -rwxr-xr-x | script/build-libgit2.sh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/script/build-libgit2.sh b/script/build-libgit2.sh index 5c420cd..e9c6c9c 100755 --- a/script/build-libgit2.sh +++ b/script/build-libgit2.sh @@ -71,4 +71,9 @@ cmake -DTHREADSAFE=ON \ -DDEPRECATE_HARD=ON \ "${VENDORED_PATH}" && +if which gmake nproc >/dev/null && [ -f Makefile ]; then + # Make the build parallel if gmake is available and cmake used Makefiles. + exec gmake "-j$(nproc --all)" install +fi + exec cmake --build . --target install |
