[lib/Fuzzer] use -fsanitize-coverage=trace-cmp when building LLVM with LLVM_USE_SANIT...
[oota-llvm.git] / lib / Fuzzer / test / dfsan / CMakeLists.txt
1 # These tests depend on both coverage and dfsan instrumentation.
2
3 set(CMAKE_CXX_FLAGS_RELEASE
4   "${LIBFUZZER_FLAGS_BASE} -O0 -fno-sanitize=all -fsanitize=dataflow")
5
6 foreach(Test ${DFSanTests})
7   add_executable(LLVMFuzzer-${Test}
8     ${Test}.cpp
9     )
10   target_link_libraries(LLVMFuzzer-${Test}
11     LLVMFuzzer
12     )
13 endforeach()
14