function(add_simple_fuzzer name) add_executable(${name} "${name}.cpp") target_compile_options(${name} PRIVATE $<$:-g -O1 -fsanitize=fuzzer> ) target_link_libraries(${name} PUBLIC Lagom PRIVATE $<$:-fsanitize=fuzzer> ) endfunction() add_simple_fuzzer(FuzzBMP) add_simple_fuzzer(FuzzELF) add_simple_fuzzer(FuzzGemini) add_simple_fuzzer(FuzzGIFLoader) add_simple_fuzzer(FuzzJPGLoader) add_simple_fuzzer(FuzzPPMLoader) add_simple_fuzzer(FuzzJs) add_simple_fuzzer(FuzzMarkdown) add_executable(FuzzilliJs FuzzilliJs.cpp) target_compile_options(FuzzilliJs PRIVATE $<$:-g -O1 -fsanitize-coverage=trace-pc-guard> ) target_link_libraries(FuzzilliJs PUBLIC Lagom PRIVATE $<$:-fsanitize-coverage=trace-pc-guard> )