Skip to content

Commit

Permalink
rust coverage: broader definition for remaps (#6595)
Browse files Browse the repository at this point in the history
As shown by opensk, rust files can be in a deeper directory
  • Loading branch information
catenacyber authored Oct 19, 2021
1 parent 464b4a9 commit b771fe7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion infra/base-images/base-builder/cargo
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ then
while read i; do
export RUSTFLAGS="$RUSTFLAGS --remap-path-prefix $i=$fuzz_src_abspath/$i"
# Bash while syntax so that we modify RUSTFLAGS in main shell instead of a subshell.
done <<< "$(ls */*.rs | cut -d/ -f1 | uniq)"
done <<< "$(find . -name "*.rs" | cut -d/ -f2 | uniq)"
# 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
Expand Down

0 comments on commit b771fe7

Please sign in to comment.