2019-04-11 03:16:14 +08:00
|
|
|
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/..
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/..)
|
2017-10-26 18:03:11 +08:00
|
|
|
|
2019-04-04 22:08:35 +08:00
|
|
|
set(LLVM_LINK_COMPONENTS
|
|
|
|
FuzzMutate
|
|
|
|
Support
|
|
|
|
)
|
2017-10-26 18:03:11 +08:00
|
|
|
|
2019-04-04 08:05:53 +08:00
|
|
|
# This fuzzer runs on oss-fuzz, so keep it around even if it looks unreferenced.
|
|
|
|
add_llvm_fuzzer(clangd-fuzzer
|
|
|
|
clangd-fuzzer.cpp
|
2021-03-22 18:18:18 +08:00
|
|
|
DUMMY_MAIN FuzzerClangdMain.cpp
|
2017-10-26 18:03:11 +08:00
|
|
|
)
|
|
|
|
|
2019-10-05 04:30:02 +08:00
|
|
|
clang_target_link_libraries(clangd-fuzzer
|
2017-12-07 03:52:40 +08:00
|
|
|
PRIVATE
|
2017-10-26 18:03:11 +08:00
|
|
|
clangBasic
|
|
|
|
clangFormat
|
|
|
|
clangFrontend
|
|
|
|
clangSema
|
|
|
|
clangTooling
|
|
|
|
clangToolingCore
|
|
|
|
)
|
2019-10-05 04:30:02 +08:00
|
|
|
target_link_libraries(clangd-fuzzer
|
|
|
|
PRIVATE
|
|
|
|
clangDaemon
|
2020-04-30 04:46:33 +08:00
|
|
|
clangdSupport
|
2019-10-05 04:30:02 +08:00
|
|
|
)
|