tamer: RUSTFLAGS support

Primarily intended for `-C target-cpu=native`.
main
Mike Gerwitz 2022-12-14 19:56:57 -05:00
parent 92afc19cf8
commit 3cc40f387b
2 changed files with 3 additions and 0 deletions

View File

@ -30,6 +30,7 @@
.PHONY: all fix fmt check-fmt bench bench-build
CARGO_BUILD_FLAGS=@CARGO_BUILD_FLAGS@
export RUSTFLAGS=@RUSTFLAGS@
.DEFAULT: bin

View File

@ -68,6 +68,8 @@ AX_COMPARE_VERSION([$rustc_version], [ge], [$rustc_ver_req],
AC_ARG_VAR([CARGO_BUILD_FLAGS],
[Flags to be passed to `cargo build' when invoked via Make])
AC_ARG_VAR([RUSTFLAGS],
[Flags to be passed to `rustc' when invoked via Make])
# All currently-used doc features are stable (this used to be used for
# intra-doc links)