From 5f8d1beddf0efa7763e8a6855cf7831f77ff2263 Mon Sep 17 00:00:00 2001 From: Jason Ish Date: Tue, 6 Oct 2026 10:26:59 -0600 Subject: [PATCH] rust: fail check-bindgen-bindings if bindgen fails Even on failure before, due to the ';', the make target was still exiting success. --- rust/Makefile.am | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rust/Makefile.am b/rust/Makefile.am index fdd85a04c7..aa069e916e 100644 --- a/rust/Makefile.am +++ b/rust/Makefile.am @@ -115,7 +115,7 @@ check-bindgen-bindings: if HAVE_BINDGEN if test "$(top_srcdir)" = "$(top_builddir)"; then \ cp sys/src/sys.rs sys/src/sys.rs.orig; \ - $(MAKE) update-bindings; \ + $(MAKE) update-bindings || exit 1; \ if diff sys/src/sys.rs sys/src/sys.rs.orig > /dev/null 2>&1; then \ rm -f sys/src/sys.rs.orig; \ else \