From f0f6f89745ddc3c7b43fbcfa5844f032c21446d8 Mon Sep 17 00:00:00 2001 From: Mike Gerwitz Date: Fri, 8 Oct 2021 09:27:56 -0400 Subject: [PATCH] tamer: Makefile.am (bench-build): New target, default for all Build the benchmarks by default to catch breakages without having to incur the cost of actually running them. --- tamer/Makefile.am | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/tamer/Makefile.am b/tamer/Makefile.am index e9e090c6..042e28b2 100644 --- a/tamer/Makefile.am +++ b/tamer/Makefile.am @@ -27,13 +27,13 @@ .DELETE_ON_ERROR: -.PHONY: all fix fmt check-fmt bench +.PHONY: all fix fmt check-fmt bench bench-build CARGO_BUILD_FLAGS=@CARGO_BUILD_FLAGS@ .DEFAULT: bin -all: bin doc +all: bin doc bench-build .PHONY: bin bin: @@ -55,6 +55,10 @@ check-fmt: bench: @CARGO@ +@RUST_TC@ @CARGO_BENCH_PRE_FLAGS@ bench $(CARGO_BENCH_FLAGS) @FEATURES@ +# Build but do not run benches (to ensures we didn't break them) +bench-build: + @CARGO@ +@RUST_TC@ @CARGO_BENCH_PRE_FLAGS@ build --benches @FEATURES@ + fix: fmt fmt: @CARGO@ +@RUST_TC@ fmt