[PATCH] D29752: [libFuzzer] Export external functions.
Marcos Pividori via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Feb 9 15:59:35 PST 2017
mpividori updated this revision to Diff 87904.
mpividori added a comment.
Herald added a subscriber: mgorny.
@kcc @zturner Now, I only modify the cmake file.
https://reviews.llvm.org/D29752
Files:
lib/Fuzzer/test/CMakeLists.txt
Index: lib/Fuzzer/test/CMakeLists.txt
===================================================================
--- lib/Fuzzer/test/CMakeLists.txt
+++ lib/Fuzzer/test/CMakeLists.txt
@@ -142,6 +142,17 @@
add_libfuzzer_test(${Test} SOURCES ${Test}.cpp)
endforeach()
+if(MSVC)
+ function(test_export_symbol target symbol)
+ set_target_properties(LLVMFuzzer-${target} PROPERTIES LINK_FLAGS
+ "-export:${symbol}")
+ endfunction()
+ test_export_symbol(InitializeTest "LLVMFuzzerInitialize")
+ test_export_symbol(BogusInitializeTest "LLVMFuzzerInitialize")
+ test_export_symbol(CustomCrossOverTest "LLVMFuzzerCustomCrossOver")
+ test_export_symbol(CustomMutatorTest "LLVMFuzzerCustomMutator")
+endif()
+
###############################################################################
# Unit tests
###############################################################################
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D29752.87904.patch
Type: text/x-patch
Size: 889 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170209/c971847f/attachment.bin>
More information about the llvm-commits
mailing list