Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 11 additions & 6 deletions clang/tools/clang-fuzzer/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -26,20 +26,25 @@ if(CLANG_ENABLE_PROTO_FUZZER)
add_definitions(-DGOOGLE_PROTOBUF_NO_RTTI)
include_directories(${PROTOBUF_INCLUDE_DIRS})
include_directories(${CMAKE_CURRENT_BINARY_DIR})
protobuf_generate_cpp(PROTO_SRCS PROTO_HDRS cxx_proto.proto)
protobuf_generate_cpp(LOOP_PROTO_SRCS LOOP_PROTO_HDRS cxx_loop_proto.proto)
set(LLVM_OPTIONAL_SOURCES ${LLVM_OPTIONAL_SOURCES} ${PROTO_SRCS})
protobuf_generate(
LANGUAGE cpp
OUT_VAR PROTO_SRCS
PROTOS cxx_proto.proto
)
protobuf_generate(
LANGUAGE cpp
OUT_VAR LOOP_PROTO_SRCS
PROTOS cxx_loop_proto.proto
)
add_clang_library(clangCXXProto
${PROTO_SRCS}
${PROTO_HDRS}

LINK_LIBS
${PROTOBUF_LIBRARIES}
)

add_clang_library(clangCXXLoopProto
${LOOP_PROTO_SRCS}
${LOOP_PROTO_HDRS}

LINK_LIBS
${PROTOBUF_LIBRARIES}
Expand All @@ -54,7 +59,7 @@ if(CLANG_ENABLE_PROTO_FUZZER)

# Build the protobuf->LLVM IR translation library and driver.
add_clang_subdirectory(proto-to-llvm)

# Build the fuzzer initialization library.
add_clang_subdirectory(fuzzer-initialize)

Expand Down