rust: fail check-bindgen-bindings if bindgen fails

Even on failure before, due to the ';', the make target was still
exiting success.
This commit is contained in:
Jason Ish
2026-10-08 13:08:24 +00:00
committed by Victor Julien
parent a329e0a3b9
commit 5f8d1beddf
+1 -1
View File
@@ -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 \