rust: add --enable-rust-debug

Add option to put Rust code in non-'--release' mode, preserving
debug symbols.

Until now Suricata would have to be compiled with --enable-debug for
this.
pull/3112/head
Victor Julien 8 years ago
parent 979f964260
commit 6c251b8576

@ -2098,6 +2098,11 @@
])
AC_SUBST(RUST_FEATURES)
AC_ARG_ENABLE(rust_debug,
AS_HELP_STRING([--enable-rust-debug], [Rust not in --release mode]),,[enable_rust_debug=no])
AM_CONDITIONAL([RUST_DEBUG], [test "x$enable_rust_debug" = "xyes"])
AC_SUBST(RUST_DEBUG)
# get revision
if test -f ./revision; then
REVISION=`cat ./revision`
@ -2212,6 +2217,7 @@ SURICATA_BUILD_CONF="Suricata Configuration:
Rust support (experimental): ${enable_rust}
Experimental Rust parsers: ${enable_rust_experimental}
Rust strict mode: ${enable_rust_strict}
Rust debug mode: ${enable_rust_debug}
Suricatasc install: ${enable_python}

@ -15,9 +15,11 @@ if HAVE_RUST_VENDOR
FROZEN = --frozen
endif
if !RUST_DEBUG
if !DEBUG
RELEASE = --release
endif
endif
if HAVE_LUA
RUST_FEATURES += lua

Loading…
Cancel
Save