Skip to content

Commit

Permalink
[Fuzz] Link LIB_FUZZING_ENGINE library for oss-fuzz
Browse files Browse the repository at this point in the history
Signed-off-by: Shen-Ta Hsieh <[email protected]>
  • Loading branch information
ibmibmibm authored and hydai committed Oct 25, 2022
1 parent 2c5354d commit 1a7afe8
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tools/fuzz/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,17 @@ wasmedge_add_executable(wasmedge-fuzzpo
po.cpp
)

if(DEFINED LIB_FUZZING_ENGINE)
target_link_libraries(wasmedge-fuzztool
PRIVATE
${LIB_FUZZING_ENGINE}
)
target_link_libraries(wasmedge-fuzzpo
PRIVATE
${LIB_FUZZING_ENGINE}
)
endif()

if(WASMEDGE_LINK_TOOLS_STATIC)
target_link_libraries(wasmedge-fuzztool
PRIVATE
Expand Down

0 comments on commit 1a7afe8

Please sign in to comment.