projects/zeek: update build script to fix coverage build (#4633)

This commit is contained in:
Jon Siwek 2020-11-12 13:49:49 -08:00 committed by GitHub
parent c1f671f078
commit 4c18f0337d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 0 deletions

View File

@ -74,3 +74,11 @@ for f in ${fuzzers}; do
fuzzer_count=$((fuzzer_count + 1)) fuzzer_count=$((fuzzer_count + 1))
done done
if [ "${SANITIZER}" = "coverage" ]; then
# Normally, base-builder/compile copies sources for use in coverage reports,
# but its use of `cp -rL` omits the "zeek -> ." symlink used by #includes,
# causing the coverage build to fail.
mkdir -p $OUT/$(basename $SRC)
cp -r $SRC/zeek $OUT/$(basename $SRC)/zeek
fi