[PATCH] D21971: Explicitly export symbols from the sample analyzer plugin

John Brawn via cfe-commits cfe-commits at lists.llvm.org
Mon Jul 4 06:35:45 PDT 2016


john.brawn created this revision.
john.brawn added reviewers: Ilod, chapuni, ehsan, reames.
john.brawn added a subscriber: cfe-commits.
john.brawn set the repository for this revision to rL LLVM.

This is done so that it will work when built using MSVC if LLVM_EXPORT_SYMBOLS_FOR_PLUGINS=ON.

Repository:
  rL LLVM

http://reviews.llvm.org/D21971

Files:
  examples/analyzer-plugin/CMakeLists.txt
  examples/analyzer-plugin/SampleAnalyzerPlugin.exports

Index: examples/analyzer-plugin/SampleAnalyzerPlugin.exports
===================================================================
--- /dev/null
+++ examples/analyzer-plugin/SampleAnalyzerPlugin.exports
@@ -0,0 +1,2 @@
+clang_registerCheckers
+clang_analyzerAPIVersionString
Index: examples/analyzer-plugin/CMakeLists.txt
===================================================================
--- examples/analyzer-plugin/CMakeLists.txt
+++ examples/analyzer-plugin/CMakeLists.txt
@@ -1,4 +1,5 @@
-add_llvm_loadable_module(SampleAnalyzerPlugin MainCallChecker.cpp)
+set(LLVM_EXPORTED_SYMBOL_FILE ${CMAKE_CURRENT_SOURCE_DIR}/SampleAnalyzerPlugin.exports)
+add_llvm_loadable_module(SampleAnalyzerPlugin MainCallChecker.cpp PLUGIN_TOOL clang)
 
 if(LLVM_ENABLE_PLUGINS AND (WIN32 OR CYGWIN))
   target_link_libraries(SampleAnalyzerPlugin PRIVATE


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D21971.62674.patch
Type: text/x-patch
Size: 838 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20160704/606c3744/attachment.bin>


More information about the cfe-commits mailing list