diff --git a/projects/zeek/build.sh b/projects/zeek/build.sh index f02e6b150..5e12504a0 100644 --- a/projects/zeek/build.sh +++ b/projects/zeek/build.sh @@ -74,3 +74,11 @@ for f in ${fuzzers}; do fuzzer_count=$((fuzzer_count + 1)) 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