[fuzzer] Add monster_debug target (#6513)

Add the `monster_debug` target for better troubleshooting.
Improve oss-fuzz logs.
This commit is contained in:
Vladimir Glavnyy
2021-03-19 00:56:28 +07:00
committed by GitHub
parent ef8dd7792a
commit c992eafb5b
4 changed files with 60 additions and 8 deletions

View File

@@ -175,4 +175,16 @@ if(BUILD_DEBUGGER)
scalar_debug.cpp
)
target_link_libraries(scalar_debug PRIVATE flatbuffers_nonfuzz)
add_executable(monster_debug
flatbuffers_monster_fuzzer.cc
monster_debug.cpp
)
target_link_libraries(monster_debug PRIVATE flatbuffers_nonfuzz)
add_custom_command(
TARGET monster_debug PRE_BUILD
COMMAND ${CMAKE_COMMAND} -E copy
${CMAKE_SOURCE_DIR}/../monster_test.bfbs
${CMAKE_CURRENT_BINARY_DIR}/monster_test.bfbs)
endif(BUILD_DEBUGGER)