[lib/Fuzzer] build tests that work well with dfsan also w/o dfsan
[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}-DFSan
8     ../${Test}.cpp
9     )
10   target_link_libraries(LLVMFuzzer-${Test}-DFSan
11     LLVMFuzzer
12     )
13 endforeach()
14