diff options
author | Jon Siwek <jsiwek@corelight.com> | 2020-11-12 13:49:49 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-12 13:49:49 -0800 |
commit | 4c18f0337d90f47a4f4b61b86f26d81970f90cb2 (patch) | |
tree | f0179806af13140dd44e442285c05d2ffb5b5c69 /projects/zeek | |
parent | c1f671f078f1f2cd147d454cd79061dbb5164043 (diff) |
projects/zeek: update build script to fix coverage build (#4633)
Diffstat (limited to 'projects/zeek')
-rw-r--r-- | projects/zeek/build.sh | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/projects/zeek/build.sh b/projects/zeek/build.sh index f02e6b15..5e12504a 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 |