[docs] Add LICENSE.txt to the root of the mono-repo
[llvm-project.git] / clang / tools / clang-format / fuzzer / CMakeLists.txt
blob87ae05b62d1977716335845e3dbd2f6dbd9170c2
1 set(LLVM_LINK_COMPONENTS support)
3 if(LLVM_USE_SANITIZE_COVERAGE)
4   set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fsanitize=fuzzer")
5 endif()
7 add_clang_executable(clang-format-fuzzer
8   EXCLUDE_FROM_ALL
9   ClangFormatFuzzer.cpp
10   )
12 target_link_libraries(clang-format-fuzzer
13   PRIVATE
14   ${CLANG_FORMAT_LIB_DEPS}
15   ${LLVM_LIB_FUZZING_ENGINE}
16   )