[cfe-commits] r150378 - in /cfe/trunk/examples: CMakeLists.txt Makefile analyzer-plugin/CMakeLists.txt analyzer-plugin/Makefile
Dylan Noblesmith
nobled at dreamwidth.org
Mon Feb 13 04:32:16 PST 2012
Author: nobled
Date: Mon Feb 13 06:32:15 2012
New Revision: 150378
URL: http://llvm.org/viewvc/llvm-project?rev=150378&view=rev
Log:
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().
Modified:
cfe/trunk/examples/CMakeLists.txt
cfe/trunk/examples/Makefile
cfe/trunk/examples/analyzer-plugin/CMakeLists.txt
cfe/trunk/examples/analyzer-plugin/Makefile
Modified: cfe/trunk/examples/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/examples/CMakeLists.txt?rev=150378&r1=150377&r2=150378&view=diff
==============================================================================
--- cfe/trunk/examples/CMakeLists.txt (original)
+++ cfe/trunk/examples/CMakeLists.txt Mon Feb 13 06:32:15 2012
@@ -2,5 +2,6 @@
set(EXCLUDE_FROM_ALL ON)
endif()
+add_subdirectory(analyzer-plugin)
add_subdirectory(clang-interpreter)
add_subdirectory(PrintFunctionNames)
Modified: cfe/trunk/examples/Makefile
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/examples/Makefile?rev=150378&r1=150377&r2=150378&view=diff
==============================================================================
--- cfe/trunk/examples/Makefile (original)
+++ cfe/trunk/examples/Makefile Mon Feb 13 06:32:15 2012
@@ -9,6 +9,6 @@
CLANG_LEVEL := ..
-PARALLEL_DIRS := clang-interpreter PrintFunctionNames
+PARALLEL_DIRS := analyzer-plugin clang-interpreter PrintFunctionNames
include $(CLANG_LEVEL)/Makefile
Modified: cfe/trunk/examples/analyzer-plugin/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/examples/analyzer-plugin/CMakeLists.txt?rev=150378&r1=150377&r2=150378&view=diff
==============================================================================
--- cfe/trunk/examples/analyzer-plugin/CMakeLists.txt (original)
+++ cfe/trunk/examples/analyzer-plugin/CMakeLists.txt Mon Feb 13 06:32:15 2012
@@ -6,7 +6,7 @@
set( LLVM_LINK_COMPONENTS support mc)
-add_clang_library(SampleAnalyzerPlugin SampleAnalyzerPlugin)
+add_clang_library(SampleAnalyzerPlugin MainCallChecker.cpp)
set_target_properties(SampleAnalyzerPlugin
PROPERTIES
Modified: cfe/trunk/examples/analyzer-plugin/Makefile
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/examples/analyzer-plugin/Makefile?rev=150378&r1=150377&r2=150378&view=diff
==============================================================================
--- cfe/trunk/examples/analyzer-plugin/Makefile (original)
+++ cfe/trunk/examples/analyzer-plugin/Makefile Mon Feb 13 06:32:15 2012
@@ -11,7 +11,7 @@
LIBRARYNAME = SampleAnalyzerPlugin
LINK_LIBS_IN_SHARED = 0
-SHARED_LIBRARY = 1
+LOADABLE_MODULE = 1
include $(CLANG_LEVEL)/Makefile
More information about the cfe-commits
mailing list