Skip to content

Commit

Permalink
oss-fuzz: make it possible to run the script more than once
Browse files Browse the repository at this point in the history
by removing various build artifacts

Signed-off-by: Evgeny Vereshchagin <evvers@ya.ru>
  • Loading branch information
evverx committed Jul 13, 2021
1 parent b4afc90 commit bfcd3c6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions scripts/oss-fuzz.sh
Expand Up @@ -19,6 +19,8 @@ mkdir -p "$OUT"
export LIB_FUZZING_ENGINE=${LIB_FUZZING_ENGINE:--fsanitize=fuzzer}

find . -name Makefile -print0 | xargs -0 sed -i 's/,-z,defs//'
rm -rf "$DESTDIR"
make -C libsepol clean
make -C libsepol V=1 -j"$(nproc)" install

# CFLAGS, CXXFLAGS and LIB_FUZZING_ENGINE have to be split to be accepted by
Expand Down

0 comments on commit bfcd3c6

Please sign in to comment.