rust: fail check-bindgen-bindings if bindgen fails

Even on failure before, due to the ';', the make target was still
exiting success.
pull/16404/head
Jason Ish 3 weeks ago committed by Victor Julien
parent a329e0a3b9
commit 5f8d1beddf

@ -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 \

Loading…
Cancel
Save