Skip to content

Commit

Permalink
Fix build.sh for disabled fuzz targets
Browse files Browse the repository at this point in the history
Signed-off-by: Jakub Sztandera <[email protected]>
  • Loading branch information
Jakub Sztandera authored and Stebalien committed Mar 29, 2022
1 parent 3546db9 commit 356a835
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .clusterfuzzlite/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@ for project in "${PROJECTS[@]}"; do

for f in fuzz_targets/*.rs; do
FUZZ_TARGET_NAME=$(basename "${f%.*}")
FUZZ_TARGET_LOC="$FUZZ_TARGET_OUTPUT_DIR/$FUZZ_TARGET_NAME"
FUZZ_OUT_NAME="${project}_${FUZZ_TARGET_NAME}"

cp "$FUZZ_TARGET_OUTPUT_DIR/$FUZZ_TARGET_NAME" "$OUT/$FUZZ_OUT_NAME"
[ -f "$FUZZ_TARGET_LOC" ] && cp "$FUZZ_TARGET_LOC" "$OUT/$FUZZ_OUT_NAME"
done

popd
Expand Down

0 comments on commit 356a835

Please sign in to comment.