From 92cea13c5d762d364d549597cc2cb490b7273edb Mon Sep 17 00:00:00 2001 From: Catena cyber <35799796+catenacyber@users.noreply.github.com> Date: Sun, 14 Mar 2021 23:53:16 +0100 Subject: [PATCH] Rust coverage : do not trigger debug assertions (#5385) --- infra/base-images/base-builder/cargo | 2 ++ 1 file changed, 2 insertions(+) diff --git a/infra/base-images/base-builder/cargo b/infra/base-images/base-builder/cargo index 670c81934..bed8e7660 100755 --- a/infra/base-images/base-builder/cargo +++ b/infra/base-images/base-builder/cargo @@ -36,6 +36,8 @@ then cd fuzz || true fuzz_src_abspath=`pwd` export RUSTFLAGS="$RUSTFLAGS --remap-path-prefix fuzz_targets=$fuzz_src_abspath/fuzz_targets" + # we do not want to trigger debug assertions and stops + export RUSTFLAGS="$RUSTFLAGS -C debug-assertions=no" # do not optimize with --release, leading to Malformed instrumentation profile data cargo build --bins # copies the build output in the expected target directory