]> granicus.if.org Git - clang/commitdiff
[clang-fuzzer] Fix shared library dependencies.
authorMatt Morehouse <mascasa@google.com>
Wed, 11 Oct 2017 15:13:53 +0000 (15:13 +0000)
committerMatt Morehouse <mascasa@google.com>
Wed, 11 Oct 2017 15:13:53 +0000 (15:13 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@315463 91177308-0d34-0410-b5e6-96231b3b80d8

tools/clang-fuzzer/CMakeLists.txt
tools/clang-fuzzer/handle-cxx/CMakeLists.txt
tools/clang-fuzzer/proto-to-cxx/CMakeLists.txt

index c76d0a753ca248ff17767ba0d069efe33be90ef0..3d612060b160c82fa94f78f00e53d6916d5d57d6 100644 (file)
@@ -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
index ba8b9c6521e936e6c22ba483cb25b7186cc4ca5b..caf1dba7af676336cf24acbaa894bf0017bf0fd1 100644 (file)
@@ -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
index 36235a584bd1865596b80a335fb6da649a3fbeae..2b0ade445564b6b3c28476af91bb61e311204fd6 100644 (file)
@@ -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)