tamer: Makefile.am (CARGO_BENCH_FLAGS): New env var

main
Mike Gerwitz 2021-08-19 16:43:14 -04:00
parent fc235b7ecc
commit e217478a46
2 changed files with 2 additions and 2 deletions

View File

@ -46,7 +46,7 @@ check-fmt:
@CARGO@ fmt -- --check
bench:
@CARGO@ @CARGO_BENCH_FLAGS@ bench @FEATURES@
@CARGO@ @CARGO_BENCH_PRE_FLAGS@ bench $(CARGO_BENCH_FLAGS) @FEATURES@
fix: fmt
fmt:

View File

@ -70,7 +70,7 @@ AC_MSG_CHECKING([`test` feature support])
AS_IF(["$RUSTC" --crate-type lib build_aux/bench_check.rs &>/dev/null],
[AC_MSG_RESULT(available)],
[AC_MSG_RESULT([no (nightly required)])
AC_SUBST([CARGO_BENCH_FLAGS], [+nightly])])
AC_SUBST([CARGO_BENCH_PRE_FLAGS], [+nightly])])
# Cargo commands may be available but not necessarily installed for the
# active toolchain. Let's check that.