From 89446751f1c05e18f50560b8dbecb384ed32e2f2 Mon Sep 17 00:00:00 2001 From: Dylan Noblesmith Date: Mon, 13 Feb 2012 12:32:15 +0000 Subject: 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(). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@150378 91177308-0d34-0410-b5e6-96231b3b80d8 --- examples/CMakeLists.txt | 1 + examples/Makefile | 2 +- examples/analyzer-plugin/CMakeLists.txt | 2 +- examples/analyzer-plugin/Makefile | 2 +- 4 files changed, 4 insertions(+), 3 deletions(-) (limited to 'examples') diff --git a/examples/CMakeLists.txt b/examples/CMakeLists.txt index 7f4253af2e..19d886935d 100644 --- a/examples/CMakeLists.txt +++ b/examples/CMakeLists.txt @@ -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) diff --git a/examples/Makefile b/examples/Makefile index 8cb431d739..d8d902874a 100644 --- a/examples/Makefile +++ b/examples/Makefile @@ -9,6 +9,6 @@ CLANG_LEVEL := .. -PARALLEL_DIRS := clang-interpreter PrintFunctionNames +PARALLEL_DIRS := analyzer-plugin clang-interpreter PrintFunctionNames include $(CLANG_LEVEL)/Makefile diff --git a/examples/analyzer-plugin/CMakeLists.txt b/examples/analyzer-plugin/CMakeLists.txt index 865422684c..2b9d82587f 100644 --- a/examples/analyzer-plugin/CMakeLists.txt +++ b/examples/analyzer-plugin/CMakeLists.txt @@ -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 diff --git a/examples/analyzer-plugin/Makefile b/examples/analyzer-plugin/Makefile index 5537ee03d8..8b83bef924 100644 --- a/examples/analyzer-plugin/Makefile +++ b/examples/analyzer-plugin/Makefile @@ -11,7 +11,7 @@ CLANG_LEVEL := ../.. LIBRARYNAME = SampleAnalyzerPlugin LINK_LIBS_IN_SHARED = 0 -SHARED_LIBRARY = 1 +LOADABLE_MODULE = 1 include $(CLANG_LEVEL)/Makefile -- cgit v1.2.3