examples/analyzer-plugin: hook up to build
This was never being compiled at all and was bitrotting as a result. Also compile SampleAnalyzerPlugin as a module, not a library, and fix a mistake with not passing the source files to add_clang_library(). llvm-svn: 150378
This commit is contained in:
parent
04eadc476e
commit
01b2c9e82f
|
@ -2,5 +2,6 @@ if(NOT CLANG_BUILD_EXAMPLES)
|
||||||
set(EXCLUDE_FROM_ALL ON)
|
set(EXCLUDE_FROM_ALL ON)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
add_subdirectory(analyzer-plugin)
|
||||||
add_subdirectory(clang-interpreter)
|
add_subdirectory(clang-interpreter)
|
||||||
add_subdirectory(PrintFunctionNames)
|
add_subdirectory(PrintFunctionNames)
|
||||||
|
|
|
@ -9,6 +9,6 @@
|
||||||
|
|
||||||
CLANG_LEVEL := ..
|
CLANG_LEVEL := ..
|
||||||
|
|
||||||
PARALLEL_DIRS := clang-interpreter PrintFunctionNames
|
PARALLEL_DIRS := analyzer-plugin clang-interpreter PrintFunctionNames
|
||||||
|
|
||||||
include $(CLANG_LEVEL)/Makefile
|
include $(CLANG_LEVEL)/Makefile
|
||||||
|
|
|
@ -6,7 +6,7 @@ set( LLVM_USED_LIBS
|
||||||
|
|
||||||
set( LLVM_LINK_COMPONENTS support mc)
|
set( LLVM_LINK_COMPONENTS support mc)
|
||||||
|
|
||||||
add_clang_library(SampleAnalyzerPlugin SampleAnalyzerPlugin)
|
add_clang_library(SampleAnalyzerPlugin MainCallChecker.cpp)
|
||||||
|
|
||||||
set_target_properties(SampleAnalyzerPlugin
|
set_target_properties(SampleAnalyzerPlugin
|
||||||
PROPERTIES
|
PROPERTIES
|
||||||
|
|
|
@ -11,7 +11,7 @@ CLANG_LEVEL := ../..
|
||||||
LIBRARYNAME = SampleAnalyzerPlugin
|
LIBRARYNAME = SampleAnalyzerPlugin
|
||||||
|
|
||||||
LINK_LIBS_IN_SHARED = 0
|
LINK_LIBS_IN_SHARED = 0
|
||||||
SHARED_LIBRARY = 1
|
LOADABLE_MODULE = 1
|
||||||
|
|
||||||
include $(CLANG_LEVEL)/Makefile
|
include $(CLANG_LEVEL)/Makefile
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue