git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Makefile: build libgit-rs and libgit-sys serially
@ 2025-08-26 16:04 David Aguilar
  2025-08-26 16:46 ` Junio C Hamano
  2025-08-26 17:44 ` [PATCH] " Kyle Lippincott
  0 siblings, 2 replies; 9+ messages in thread
From: David Aguilar @ 2025-08-26 16:04 UTC (permalink / raw)
  To: Junio C Hamano
  Cc: git, Ezekiel Newren, Josh Steadmon, Calvin Wan, Kyle Lippincott

The "cargo build" invocations in contrib/ cannot be run in parallel.

"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.

Signed-off-by: David Aguilar <davvid@gmail.com>
---
 Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Makefile b/Makefile
index 29a53520fd..286d3ba3b2 100644
--- a/Makefile
+++ b/Makefile
@@ -3989,7 +3989,7 @@ libgit-sys libgit-rs:
 		cargo build \
 	)
 ifdef INCLUDE_LIBGIT_RS
-all:: libgit-sys libgit-rs
+all:: libgit-sys .WAIT libgit-rs
 endif
 
 LIBGIT_PUB_OBJS += contrib/libgit-sys/public_symbol_export.o
-- 
2.50.0.7.gec2f25360c


^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2025-08-27  0:01 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-08-26 16:04 [PATCH] Makefile: build libgit-rs and libgit-sys serially David Aguilar
2025-08-26 16:46 ` Junio C Hamano
2025-08-26 23:35   ` [PATCH v2] " David Aguilar
2025-08-26 23:48     ` Kyle Lippincott
2025-08-27  0:01       ` Junio C Hamano
2025-08-26 17:44 ` [PATCH] " Kyle Lippincott
2025-08-26 17:53   ` rsbecker
2025-08-26 18:02     ` Kyle Lippincott
2025-08-26 18:05       ` rsbecker

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).