forked from OSchip/llvm-project
Explicitly export symbols from the sample analyzer plugin
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 llvm-svn: 274871
This commit is contained in:
parent
d6ce086f32
commit
a4403c9708
|
@ -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
|
||||
|
|
|
@ -0,0 +1,2 @@
|
|||
clang_registerCheckers
|
||||
clang_analyzerAPIVersionString
|
Loading…
Reference in New Issue