1# Build the stack trace compressor fuzzer. This will require Clang >= 6.0.0, as 2# -fsanitize=fuzzer-no-link was not a valid command line flag prior to this. 3if (LLVM_USE_SANITIZE_COVERAGE) 4 add_executable(stack_trace_compressor_fuzzer 5 ../../lib/gwp_asan/stack_trace_compressor.cpp 6 ../../lib/gwp_asan/stack_trace_compressor.h 7 stack_trace_compressor_fuzzer.cpp) 8 set_target_properties( 9 stack_trace_compressor_fuzzer PROPERTIES FOLDER "Fuzzers") 10 target_compile_options( 11 stack_trace_compressor_fuzzer PRIVATE -fsanitize=fuzzer-no-link) 12 set_target_properties( 13 stack_trace_compressor_fuzzer PROPERTIES LINK_FLAGS -fsanitize=fuzzer) 14 target_include_directories( 15 stack_trace_compressor_fuzzer PRIVATE ../../lib/) 16 17 if (TARGET gwp_asan) 18 add_dependencies(gwp_asan stack_trace_compressor_fuzzer) 19 endif() 20endif() 21