summaryrefslogtreecommitdiffstats
path: root/tools/clang-fuzzer
diff options
context:
space:
mode:
authorMatt Morehouse <mascasa@google.com>2017-10-11 15:13:53 +0000
committerMatt Morehouse <mascasa@google.com>2017-10-11 15:13:53 +0000
commit537401c562b3473178816ee49e09e4a2ab49e061 (patch)
treeaa859ab73c4e810f2cc37aee707f94f964617ad3 /tools/clang-fuzzer
parente24b3a35685ff15c01ffc76e6672fb157be53019 (diff)
[clang-fuzzer] Fix shared library dependencies.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@315463 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/clang-fuzzer')
-rw-r--r--tools/clang-fuzzer/CMakeLists.txt1
-rw-r--r--tools/clang-fuzzer/handle-cxx/CMakeLists.txt3
-rw-r--r--tools/clang-fuzzer/proto-to-cxx/CMakeLists.txt4
3 files changed, 5 insertions, 3 deletions
diff --git a/tools/clang-fuzzer/CMakeLists.txt b/tools/clang-fuzzer/CMakeLists.txt
index c76d0a753c..3d612060b1 100644
--- a/tools/clang-fuzzer/CMakeLists.txt
+++ b/tools/clang-fuzzer/CMakeLists.txt
@@ -37,6 +37,7 @@ if( LLVM_USE_SANITIZE_COVERAGE )
add_clang_executable(clang-proto-fuzzer ExampleClangProtoFuzzer.cpp)
target_link_libraries(clang-proto-fuzzer
${ProtobufMutator_LIBRARIES}
+ ${PROTOBUF_LIBRARIES}
clangCXXProto
clangHandleCXX
clangProtoToCXX
diff --git a/tools/clang-fuzzer/handle-cxx/CMakeLists.txt b/tools/clang-fuzzer/handle-cxx/CMakeLists.txt
index ba8b9c6521..caf1dba7af 100644
--- a/tools/clang-fuzzer/handle-cxx/CMakeLists.txt
+++ b/tools/clang-fuzzer/handle-cxx/CMakeLists.txt
@@ -1,9 +1,10 @@
-set(LLVM_LINK_COMPONENTS ${LLVM_TARGETS_TO_BUILD})
+set(LLVM_LINK_COMPONENTS ${LLVM_TARGETS_TO_BUILD} Support)
add_clang_library(clangHandleCXX
handle_cxx.cpp
LINK_LIBS
+ clangBasic
clangCodeGen
clangFrontend
clangLex
diff --git a/tools/clang-fuzzer/proto-to-cxx/CMakeLists.txt b/tools/clang-fuzzer/proto-to-cxx/CMakeLists.txt
index 36235a584b..2b0ade4455 100644
--- a/tools/clang-fuzzer/proto-to-cxx/CMakeLists.txt
+++ b/tools/clang-fuzzer/proto-to-cxx/CMakeLists.txt
@@ -5,9 +5,9 @@ set(CMAKE_CXX_FLAGS ${CXX_FLAGS_NOFUZZ})
# an executable built from this directory.
set(LLVM_OPTIONAL_SOURCES proto_to_cxx.cpp proto_to_cxx_main.cpp)
-add_clang_library(clangProtoToCXX proto_to_cxx.cpp
+add_clang_library(clangProtoToCXX proto_to_cxx.cpp
DEPENDS clangCXXProto
- LINK_LIBS clangCXXProto
+ LINK_LIBS clangCXXProto ${PROTOBUF_LIBRARIES}
)
add_clang_executable(clang-proto-to-cxx proto_to_cxx_main.cpp)