From 01b2c9e82fa70dd94076daedbdb090a430581637 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(). llvm-svn: 150378 --- clang/examples/analyzer-plugin/CMakeLists.txt | 2 +- clang/examples/analyzer-plugin/Makefile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'clang/examples/analyzer-plugin') diff --git a/clang/examples/analyzer-plugin/CMakeLists.txt b/clang/examples/analyzer-plugin/CMakeLists.txt index 865422684ca..2b9d82587ff 100644 --- a/clang/examples/analyzer-plugin/CMakeLists.txt +++ b/clang/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/clang/examples/analyzer-plugin/Makefile b/clang/examples/analyzer-plugin/Makefile index 5537ee03d88..8b83bef9245 100644 --- a/clang/examples/analyzer-plugin/Makefile +++ b/clang/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