Rust coverage : do not trigger debug assertions (#5385)

This commit is contained in:
Catena cyber 2021-03-14 23:53:16 +01:00 committed by GitHub
parent b000f70a7a
commit 92cea13c5d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -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