]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
rust: do not rebuild stdlib when coverage is enabled
authorPhilippe Antoine <contact@catenacyber.fr>
Mon, 16 Nov 2020 09:12:55 +0000 (10:12 +0100)
committerVictor Julien <victor@inliniac.net>
Tue, 1 Dec 2020 04:33:07 +0000 (05:33 +0100)
Because both seem incompatible for now

configure.ac

index f1f316f3f1ce54ea8df9d876605a1495c1904e93..604bcc1125ac040c7fbc782fbbec3428519476ad 100644 (file)
@@ -2626,7 +2626,7 @@ fi
     AC_ARG_ENABLE(fuzztargets,
         AS_HELP_STRING([--enable-fuzztargets], [Enable fuzz targets]),[enable_fuzztargets=$enableval],[enable_fuzztargets=no])
     AM_CONDITIONAL([BUILD_FUZZTARGETS], [test "x$enable_fuzztargets" = "xyes"])
-    AM_CONDITIONAL([RUST_BUILD_STD], [test "x$enable_fuzztargets" = "xyes" && echo "$rust_compiler_version" | grep -q nightly])
+    AM_CONDITIONAL([RUST_BUILD_STD], [test "x$enable_fuzztargets" = "xyes" && echo "$rust_compiler_version" | grep -q nightly && echo "$RUSTFLAGS" | grep -v -q coverage])
     AC_PROG_CXX
     AS_IF([test "x$enable_fuzztargets" = "xyes"], [
         AS_IF([test "x$CARGO_BUILD_TARGET" = "x" && echo "$rust_compiler_version" | grep -q nightly], [