[PATCH] D29752: [libFuzzer] Export external functions.
Marcos Pividori via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Feb 9 16:39:11 PST 2017
mpividori updated this revision to Diff 87913.
mpividori added a comment.
@zturner Ok, thanks for your feedback. Done.
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,18 @@
add_libfuzzer_test(${Test} SOURCES ${Test}.cpp)
endforeach()
+function(test_export_symbol target symbol)
+ if(MSVC)
+ set_target_properties(LLVMFuzzer-${target} PROPERTIES LINK_FLAGS
+ "-export:${symbol}")
+ endif()
+endfunction()
+
+test_export_symbol(InitializeTest "LLVMFuzzerInitialize")
+test_export_symbol(BogusInitializeTest "LLVMFuzzerInitialize")
+test_export_symbol(CustomCrossOverTest "LLVMFuzzerCustomCrossOver")
+test_export_symbol(CustomMutatorTest "LLVMFuzzerCustomMutator")
+
###############################################################################
# Unit tests
###############################################################################
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D29752.87913.patch
Type: text/x-patch
Size: 883 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170210/f558571f/attachment.bin>
More information about the llvm-commits
mailing list