diff options
author | Edward Thomson <ethomson@edwardthomson.com> | 2021-11-06 16:38:57 -0400 |
---|---|---|
committer | Edward Thomson <ethomson@edwardthomson.com> | 2021-11-11 15:56:10 -0500 |
commit | 4d2a6839dc5b020b26ab8209952d95411eb34da5 (patch) | |
tree | 519819500d7ff17e2c223e4861458e0ba8366566 /fuzzers | |
parent | 7b527c12bc07d61fb6d2f0d7bb0b35815dbae49d (diff) | |
download | libgit2-4d2a6839dc5b020b26ab8209952d95411eb34da5.tar.gz |
cmake: move fuzzer args to the fuzzer's cmake
Diffstat (limited to 'fuzzers')
-rw-r--r-- | fuzzers/CMakeLists.txt | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/fuzzers/CMakeLists.txt b/fuzzers/CMakeLists.txt index 8cc61b751..1479a2af8 100644 --- a/fuzzers/CMakeLists.txt +++ b/fuzzers/CMakeLists.txt @@ -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) |