From 46c42d2f7842504edab403e8ebc5c07454c87f67 Mon Sep 17 00:00:00 2001 From: Gonen <830775+goneng@users.noreply.github.com> Date: Mon, 21 Sep 2026 12:35:00 +0300 Subject: [PATCH] Stop building the libgit2 test suite on every build The flag meant to switch the Clar tests off has not matched the option libgit2 declares since its 1.x rename, so every build compiles a test suite that is never run. - Pass -DBUILD_TESTS:BOOL=OFF, the name the pinned libgit2 declares, in place of the -DBUILD_CLAR:BOOL=OFF that now matches nothing. - Leave the rest of the configure line untouched: BUILD_TESTS gates only enable_testing() and the tests subdirectory, never src, so the archive this script installs is unchanged. --- script/update_libgit2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/script/update_libgit2 b/script/update_libgit2 index 3152c446..c4c736c2 100755 --- a/script/update_libgit2 +++ b/script/update_libgit2 @@ -28,7 +28,7 @@ PATH="$ARCH_PREFIX/bin:$PATH" cmake --version cmake -DBUILD_SHARED_LIBS:BOOL=OFF \ - -DBUILD_CLAR:BOOL=OFF \ + -DBUILD_TESTS:BOOL=OFF \ -DTHREADSAFE:BOOL=ON \ -DCMAKE_POLICY_VERSION_MINIMUM=3.5 \ ..