]> granicus.if.org Git - clang/commitdiff
examples/analyzer-plugin: hook up to build
authorDylan Noblesmith <nobled@dreamwidth.org>
Mon, 13 Feb 2012 12:32:15 +0000 (12:32 +0000)
committerDylan Noblesmith <nobled@dreamwidth.org>
Mon, 13 Feb 2012 12:32:15 +0000 (12:32 +0000)
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().

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@150378 91177308-0d34-0410-b5e6-96231b3b80d8

examples/CMakeLists.txt
examples/Makefile
examples/analyzer-plugin/CMakeLists.txt
examples/analyzer-plugin/Makefile

index 7f4253af2eb270bfe0f2fbbfe74e3e316b4bdb87..19d886935d4e9fe623188461f0dd58bc83cf0d9c 100644 (file)
@@ -2,5 +2,6 @@ if(NOT CLANG_BUILD_EXAMPLES)
   set(EXCLUDE_FROM_ALL ON)
 endif()
 
+add_subdirectory(analyzer-plugin)
 add_subdirectory(clang-interpreter)
 add_subdirectory(PrintFunctionNames)
index 8cb431d7391608f404cd99068ce792f1a214bfdf..d8d902874ae0a5eba87a3591d8ca04040cf355dc 100644 (file)
@@ -9,6 +9,6 @@
 
 CLANG_LEVEL := ..
 
-PARALLEL_DIRS := clang-interpreter PrintFunctionNames
+PARALLEL_DIRS := analyzer-plugin clang-interpreter PrintFunctionNames
 
 include $(CLANG_LEVEL)/Makefile
index 865422684ca537b0567cc0b3b4cdc6dc31e7716e..2b9d82587fffb9fb0b1abb3e14876afc4105c660 100644 (file)
@@ -6,7 +6,7 @@ set( LLVM_USED_LIBS
 
 set( LLVM_LINK_COMPONENTS support mc)
 
-add_clang_library(SampleAnalyzerPlugin SampleAnalyzerPlugin)
+add_clang_library(SampleAnalyzerPlugin MainCallChecker.cpp)
 
 set_target_properties(SampleAnalyzerPlugin
   PROPERTIES
index 5537ee03d880ffb96a9b2af0c8bef2d5f0993877..8b83bef9245a53ea7b3a9c84adfd79a3173129e4 100644 (file)
@@ -11,7 +11,7 @@ CLANG_LEVEL := ../..
 LIBRARYNAME = SampleAnalyzerPlugin
 
 LINK_LIBS_IN_SHARED = 0
-SHARED_LIBRARY = 1
+LOADABLE_MODULE = 1
 
 include $(CLANG_LEVEL)/Makefile