Skip to content

Commit

Permalink
enh: Improve libssh2 and libgit2 compilation times
Browse files Browse the repository at this point in the history
  • Loading branch information
cdalvaro committed Mar 29, 2022
1 parent 0c013a5 commit 5e5151a
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion assets/build/functions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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[@]}
Expand All @@ -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}"
Expand Down

0 comments on commit 5e5151a

Please sign in to comment.