summaryrefslogtreecommitdiffstats
path: root/clang/examples/PrintFunctionNames
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2010-06-08 19:23:49 +0000
committerDouglas Gregor <dgregor@apple.com>2010-06-08 19:23:49 +0000
commit61b5ff5ab4e5848e5e98b811cf0accf5d3b8db22 (patch)
tree8dcd1a8dd624a895cd5e4887b6819450f13bfa4f /clang/examples/PrintFunctionNames
parent446872069f02a4ffa88d1f0844177f49535824a5 (diff)
downloadbcm5719-llvm-61b5ff5ab4e5848e5e98b811cf0accf5d3b8db22.tar.gz
bcm5719-llvm-61b5ff5ab4e5848e5e98b811cf0accf5d3b8db22.zip
Teach the PrintFunctionNames example to be a proper module, so that
Clang can load it as a plugin. Original fix by Troy D. Straszheim, which I extended with Darwin support. Fixes PR6801. llvm-svn: 105630
Diffstat (limited to 'clang/examples/PrintFunctionNames')
-rw-r--r--clang/examples/PrintFunctionNames/CMakeLists.txt22
1 files changed, 3 insertions, 19 deletions
diff --git a/clang/examples/PrintFunctionNames/CMakeLists.txt b/clang/examples/PrintFunctionNames/CMakeLists.txt
index 49dd22ad8d0..5ea75db42e0 100644
--- a/clang/examples/PrintFunctionNames/CMakeLists.txt
+++ b/clang/examples/PrintFunctionNames/CMakeLists.txt
@@ -1,26 +1,10 @@
-set(SHARED_LIBRARY TRUE)
+set(MODULE TRUE)
set(LLVM_NO_RTTI 1)
-set(LLVM_USED_LIBS
- clangIndex
- clangFrontend
- clangDriver
- clangSema
- clangAnalysis
- clangAST
- clangParse
- clangLex
- clangBasic)
-
-set( LLVM_LINK_COMPONENTS
- bitreader
- mc
- core
- )
-
add_clang_library(PrintFunctionNames PrintFunctionNames.cpp)
set_target_properties(PrintFunctionNames
PROPERTIES
- LINKER_LANGUAGE CXX)
+ LINKER_LANGUAGE CXX
+ PREFIX "")
OpenPOWER on IntegriCloud