[PATCH] D27946: [libFuzzer] Diff 35 - [FuzzerSupport] Update Cmake files to include LLVMFuzzerSupport library.
Marcos Pividori via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Dec 19 14:02:34 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/D27946
Files:
lib/Fuzzer/CMakeLists.txt
lib/Fuzzer/Support/CMakeLists.txt
Index: lib/Fuzzer/Support/CMakeLists.txt
===================================================================
--- /dev/null
+++ lib/Fuzzer/Support/CMakeLists.txt
@@ -0,0 +1,10 @@
+add_library(LLVMFuzzerSupport STATIC
+ Util.cpp
+ UtilDarwin.cpp
+ UtilLinux.cpp
+ UtilPosix.cpp
+ UtilWindows.cpp
+ UtilIO.cpp
+ UtilIOPosix.cpp
+ UtilIOWindows.cpp
+ )
Index: lib/Fuzzer/CMakeLists.txt
===================================================================
--- lib/Fuzzer/CMakeLists.txt
+++ lib/Fuzzer/CMakeLists.txt
@@ -8,6 +8,9 @@
"LLVM_USE_SANITIZE_COVERAGE=YES to be set."
)
endif()
+
+ add_subdirectory(Support)
+
add_library(LLVMFuzzerNoMainObjects OBJECT
FuzzerCrossOver.cpp
FuzzerDriver.cpp
@@ -26,11 +29,13 @@
$<TARGET_OBJECTS:LLVMFuzzerNoMainObjects>
)
target_link_libraries(LLVMFuzzerNoMain ${PTHREAD_LIB})
+ target_link_libraries(LLVMFuzzerNoMain LLVMFuzzerSupport)
add_library(LLVMFuzzer STATIC
FuzzerMain.cpp
$<TARGET_OBJECTS:LLVMFuzzerNoMainObjects>
)
target_link_libraries(LLVMFuzzer ${PTHREAD_LIB})
+ target_link_libraries(LLVMFuzzer LLVMFuzzerSupport)
if( LLVM_INCLUDE_TESTS )
add_subdirectory(test)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D27946.82007.patch
Type: text/x-patch
Size: 1197 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20161219/33ff5b50/attachment.bin>
More information about the llvm-commits
mailing list