Fix clangd-fuzzer build

r357102 made clangd-fuzzer no longer compile, but before
r357654 / r357694 we didn't notice. Fix the compile.

Also add a dep on FuzzMutate which I forgot to do in r357654.

llvm-svn: 357696
This commit is contained in:
Nico Weber 2019-04-04 14:08:35 +00:00
parent 00e7ae9f80
commit b28b4c9036
2 changed files with 6 additions and 2 deletions

View File

@ -1,6 +1,9 @@
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/..) include_directories(${CMAKE_CURRENT_SOURCE_DIR}/..)
set(LLVM_LINK_COMPONENTS support) set(LLVM_LINK_COMPONENTS
FuzzMutate
Support
)
# This fuzzer runs on oss-fuzz, so keep it around even if it looks unreferenced. # This fuzzer runs on oss-fuzz, so keep it around even if it looks unreferenced.
add_llvm_fuzzer(clangd-fuzzer add_llvm_fuzzer(clangd-fuzzer

View File

@ -36,7 +36,8 @@ extern "C" int LLVMFuzzerTestOneInput(uint8_t *data, size_t size) {
ClangdServer::Options Opts; ClangdServer::Options Opts;
// Initialize and run ClangdLSPServer. // Initialize and run ClangdLSPServer.
ClangdLSPServer LSPServer(*Transport, FS, CCOpts, llvm::None, false, Opts); ClangdLSPServer LSPServer(*Transport, FS, CCOpts, llvm::None, false,
llvm::None, Opts);
LSPServer.run(); LSPServer.run();
return 0; return 0;
} }