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
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
_______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits