aboutsummaryrefslogtreecommitdiff
path: root/infra
diff options
context:
space:
mode:
authorCatena cyber <35799796+catenacyber@users.noreply.github.com>2021-03-14 23:53:16 +0100
committerGitHub <noreply@github.com>2021-03-14 15:53:16 -0700
commit92cea13c5d762d364d549597cc2cb490b7273edb (patch)
treec950c4c0772dab0b633af8f8764d16c918fc8a89 /infra
parentb000f70a7ad45f492f4ea7b2ee2c11466e51d4db (diff)
downloadoss-fuzz-92cea13c5d762d364d549597cc2cb490b7273edb.tar.gz
Rust coverage : do not trigger debug assertions (#5385)
Diffstat (limited to 'infra')
-rwxr-xr-xinfra/base-images/base-builder/cargo2
1 files changed, 2 insertions, 0 deletions
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