[PATCH] D27952: [libFuzzer] Diff 41 - [FuzzerSupport] Update Cmake to include LLVMFuzzerAflDrive library.
Marcos Pividori via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Dec 19 14:24:07 PST 2016
mpividori created this revision.
mpividori added reviewers: kcc, zturner.
mpividori added a subscriber: llvm-commits.
mpividori set the repository for this revision to rL LLVM.
Herald added a subscriber: mgorny.
Repository:
rL LLVM
https://reviews.llvm.org/D27952
Files:
lib/Fuzzer/CMakeLists.txt
lib/Fuzzer/afl/CMakeLists.txt
lib/Fuzzer/test/no-coverage/CMakeLists.txt
Index: lib/Fuzzer/test/no-coverage/CMakeLists.txt
===================================================================
--- lib/Fuzzer/test/no-coverage/CMakeLists.txt
+++ lib/Fuzzer/test/no-coverage/CMakeLists.txt
@@ -18,7 +18,9 @@
###############################################################################
add_executable(AFLDriverTest
- ../AFLDriverTest.cpp ../../afl/afl_driver.cpp)
+ ../AFLDriverTest.cpp)
+
+target_link_libraries(AFLDriverTest LLVMFuzzerAflDriver)
set_target_properties(AFLDriverTest
PROPERTIES RUNTIME_OUTPUT_DIRECTORY
Index: lib/Fuzzer/afl/CMakeLists.txt
===================================================================
--- /dev/null
+++ lib/Fuzzer/afl/CMakeLists.txt
@@ -0,0 +1,4 @@
+add_library(LLVMFuzzerAflDriver STATIC
+ afl_driver.cpp
+ )
+target_link_libraries(LLVMFuzzerAflDriver LLVMFuzzerSupport)
Index: lib/Fuzzer/CMakeLists.txt
===================================================================
--- lib/Fuzzer/CMakeLists.txt
+++ lib/Fuzzer/CMakeLists.txt
@@ -37,6 +37,7 @@
target_link_libraries(LLVMFuzzer ${PTHREAD_LIB})
target_link_libraries(LLVMFuzzer LLVMFuzzerSupport)
+ add_subdirectory(afl)
if( LLVM_INCLUDE_TESTS )
add_subdirectory(test)
endif()
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D27952.82016.patch
Type: text/x-patch
Size: 1236 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20161219/8c81f4d3/attachment.bin>
More information about the llvm-commits
mailing list