From 5e5151a40dfcfc5bf89847fc9ac37e1b116dbb7d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carlos=20A=CC=81lvaro?= Date: Tue, 29 Mar 2022 16:41:51 +0200 Subject: [PATCH] enh: Improve libssh2 and libgit2 compilation times --- assets/build/functions.sh | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/assets/build/functions.sh b/assets/build/functions.sh index 6fb21940..8568c4d9 100755 --- a/assets/build/functions.sh +++ b/assets/build/functions.sh @@ -186,6 +186,8 @@ function install_libssh2() -DENABLE_ZLIB_COMPRESSION=ON -DENABLE_DEBUG_LOGGING=OFF -DCLEAR_MEMORY=ON + -DBUILD_EXAMPLES=OFF + -DBUILD_TESTING=OFF ) build_and_install "libssh2 v${LIBSSH2_VERSION}" ${_OPTS[@]} @@ -212,7 +214,15 @@ function install_libgit2() check_sha256 "${FILE_NAME}" "${SHA256_SUM}" extract "${FILE_NAME}" - build_and_install "libgit2 v${LIBGIT2_VERSION}" -DBUILD_CLAR=OFF + _OPTS=( + -DBUILD_SHARED_LIBS=ON + -DUSE_SSH=ON + -DUSE_THREADS=ON + -DBUILD_EXAMPLES=OFF + -DBUILD_TESTS=OFF + ) + + build_and_install "libgit2 v${LIBGIT2_VERSION}" ${_OPTS[@]} cd "${CURRENT_DIR}" rm -rf "${WORK_DIR}"