Skip to content

Commit

Permalink
build-sys: Don't leave empty file on error
Browse files Browse the repository at this point in the history
  • Loading branch information
cgwalters committed Aug 18, 2021
1 parent e07279e commit a6c2f6e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile.bindings
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
binding_rust_sources = $(shell find rust/src/ -name '*.rs') Cargo.toml Cargo.lock

rust/cxx.h: Makefile.bindings
./target/cxxbridge/bin/cxxbridge --header >$@
./target/cxxbridge/bin/cxxbridge --header >$@.tmp && mv $@.tmp $@

rpmostree-cxxrs.h: $(binding_rust_sources)
$(AM_V_GEN) if ./target/cxxbridge/bin/cxxbridge rust/src/lib.rs --header > $@.tmp; then \
Expand Down

0 comments on commit a6c2f6e

Please sign in to comment.