blob: 499cf98a6b9ab7ce84064506fca909975fad402e [file] [log] [blame]
Kostya Serebryany2c1b33b2015-01-29 23:01:07 +00001# Disable the coverage instrumentation for the fuzzer itself.
2set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -O2 -fsanitize-coverage=0")
Aaron Ballmanef116982015-01-29 16:58:29 +00003if( LLVM_USE_SANITIZE_COVERAGE )
4 add_library(LLVMFuzzer STATIC
5 EXCLUDE_FROM_ALL # Do not build if you are not building fuzzers.
6 FuzzerCrossOver.cpp
7 FuzzerIO.cpp
8 FuzzerLoop.cpp
9 FuzzerMain.cpp
10 FuzzerMutate.cpp
11 FuzzerUtil.cpp
12 )
13
14 if( LLVM_INCLUDE_TESTS )
15 add_subdirectory(test)
16 endif()
17endif()