Skip to content

Commit

Permalink
chore(tooling): Make sure make fails if cargo build fails
Browse files Browse the repository at this point in the history
  • Loading branch information
alerque committed Oct 31, 2023
1 parent 93d5bf4 commit e318eb1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions build-aux/rust_boilerplate.mk.in
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ $(COMPLETIONS_OUT_DIR)/_$(TRANSFORMED_PACKAGE_NAME): $(CARGO_BIN) | $(COMPLETION

$(_RUST_OUT) $(CARGO_BIN): $(@PACKAGE_VAR@_SOURCES) $(EXTRA_@PACKAGE_VAR@_SOURCES)
cd $(top_srcdir)
set -e
$(CARGO_ENV) $(CARGO) build $(CARGO_VERBOSE) $(CARGO_FEATURE_ARGS) $(CARGO_RELEASE_ARGS)
$(CARGO_ENV) $(CARGO) build --quiet --message-format=json $(CARGO_FEATURE_ARGS) $(CARGO_RELEASE_ARGS) |
$(JQ) -sr 'map(select(.reason == "build-script-executed")) | last | .out_dir' > $(_RUST_OUT)
Expand Down

0 comments on commit e318eb1

Please sign in to comment.