Skip to content

Commit

Permalink
bring back the BUILD_FUZZER flag
Browse files Browse the repository at this point in the history
  • Loading branch information
sashashura authored and lipnitsk committed Oct 17, 2023
1 parent a90a19a commit e22665c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,10 @@ TARGET_LINK_LIBRARIES(issue10 cue)
ADD_EXECUTABLE(99_tracks ${CMAKE_SOURCE_DIR}/t/99_tracks.c)
TARGET_LINK_LIBRARIES(99_tracks cue)

ADD_EXECUTABLE(fuzz ${CMAKE_SOURCE_DIR}/oss-fuzz/fuzz.c)
TARGET_LINK_LIBRARIES(fuzz cue $ENV{LIB_FUZZING_ENGINE})
if(BUILD_FUZZER)
ADD_EXECUTABLE(fuzz ${CMAKE_SOURCE_DIR}/oss-fuzz/fuzz.c)
TARGET_LINK_LIBRARIES(fuzz cue $ENV{LIB_FUZZING_ENGINE})
endif()

INCLUDE(Dart)

Expand Down
2 changes: 1 addition & 1 deletion oss-fuzz/build.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash -eu

cd $WORK
cmake -DCMAKE_BUILD_TYPE=Release $SRC/libcue
cmake -DBUILD_FUZZER=ON -DCMAKE_BUILD_TYPE=Release $SRC/libcue
make

fuzzer_name=fuzz
Expand Down

0 comments on commit e22665c

Please sign in to comment.