]> git.ipfire.org Git - thirdparty/git.git/commit
Makefile: build libgit-rs and libgit-sys serially
authorDavid Aguilar <davvid@gmail.com>
Tue, 26 Aug 2025 23:35:25 +0000 (16:35 -0700)
committerJunio C Hamano <gitster@pobox.com>
Wed, 27 Aug 2025 00:02:12 +0000 (17:02 -0700)
commit0eeacde50e71cc320016f0bcf9f8b17d5168cbfd
treece0d011b9d3553d225cfd0f719cd9ba5e98019c8
parent16bd9f20a403117f2e0d9bcda6c6e621d3763e77
Makefile: build libgit-rs and libgit-sys serially

"make -JN" with INCLUDE_LIBGIT_RS enabled causes cargo lock warnings
and can trigger ld errors during the build.

The build errors are caused by two inner "make" invocations getting
triggered concurrently: once inside of libgit-sys and another inside of
libgit-rs.

Make libgit-rs depend on libgit-sys so that "make" prevents them
from running concurrently. Apply the same logic to the test invocations.
Use cargo's "--manifest-path" option instead of "cd" in the recipes.

Signed-off-by: David Aguilar <davvid@gmail.com>
Acked-by: Kyle Lippincott <spectral@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Makefile
t/Makefile