Skip to content
This repository was archived by the owner on Nov 1, 2021. It is now read-only.

Commit 8944675

Browse files
committed
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
1 parent 4ee01ef commit 8944675

File tree

4 files changed

+4
-3
lines changed

4 files changed

+4
-3
lines changed

examples/CMakeLists.txt

+1
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,6 @@ if(NOT CLANG_BUILD_EXAMPLES)
22
set(EXCLUDE_FROM_ALL ON)
33
endif()
44

5+
add_subdirectory(analyzer-plugin)
56
add_subdirectory(clang-interpreter)
67
add_subdirectory(PrintFunctionNames)

examples/Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@
99

1010
CLANG_LEVEL := ..
1111

12-
PARALLEL_DIRS := clang-interpreter PrintFunctionNames
12+
PARALLEL_DIRS := analyzer-plugin clang-interpreter PrintFunctionNames
1313

1414
include $(CLANG_LEVEL)/Makefile

examples/analyzer-plugin/CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ set( LLVM_USED_LIBS
66

77
set( LLVM_LINK_COMPONENTS support mc)
88

9-
add_clang_library(SampleAnalyzerPlugin SampleAnalyzerPlugin)
9+
add_clang_library(SampleAnalyzerPlugin MainCallChecker.cpp)
1010

1111
set_target_properties(SampleAnalyzerPlugin
1212
PROPERTIES

examples/analyzer-plugin/Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ CLANG_LEVEL := ../..
1111
LIBRARYNAME = SampleAnalyzerPlugin
1212

1313
LINK_LIBS_IN_SHARED = 0
14-
SHARED_LIBRARY = 1
14+
LOADABLE_MODULE = 1
1515

1616
include $(CLANG_LEVEL)/Makefile
1717

0 commit comments

Comments
 (0)