Skip to content

Commit

Permalink
Explicitly export symbols from the sample analyzer plugin
Browse files Browse the repository at this point in the history
This is done so that it will work when built using MSVC if
LLVM_EXPORT_SYMBOLS_FOR_PLUGINS=ON.

Differential Revision: http://reviews.llvm.org/D21971


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@274871 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
john-brawn-arm committed Jul 8, 2016
1 parent bb6076f commit 83cd1c5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion examples/analyzer-plugin/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 2 additions & 0 deletions examples/analyzer-plugin/SampleAnalyzerPlugin.exports
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
clang_registerCheckers
clang_analyzerAPIVersionString

0 comments on commit 83cd1c5

Please sign in to comment.