mirror of
https://github.com/libgit2/libgit2.git
synced 2026-01-25 02:56:17 +00:00
cmake: move fuzzer args to the fuzzer's cmake
This commit is contained in:
@@ -3,7 +3,10 @@ include_directories(${LIBGIT2_INCLUDES})
|
||||
include_directories(SYSTEM ${LIBGIT2_SYSTEM_INCLUDES})
|
||||
|
||||
if(BUILD_FUZZERS AND NOT USE_STANDALONE_FUZZERS)
|
||||
set(CMAKE_REQUIRED_FLAGS "-fsanitize=fuzzer-no-link")
|
||||
add_c_flag(-fsanitize=fuzzer)
|
||||
add_c_flag(-fsanitize=fuzzer-no-link)
|
||||
unset(CMAKE_REQUIRED_FLAGS)
|
||||
endif()
|
||||
|
||||
file(GLOB SRC_FUZZ RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} *_fuzzer.c)
|
||||
|
||||
Reference in New Issue
Block a user