summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--clang/examples/PrintFunctionNames/CMakeLists.txt28
1 files changed, 28 insertions, 0 deletions
diff --git a/clang/examples/PrintFunctionNames/CMakeLists.txt b/clang/examples/PrintFunctionNames/CMakeLists.txt
index 5ea75db42e0..f8d7375906a 100644
--- a/clang/examples/PrintFunctionNames/CMakeLists.txt
+++ b/clang/examples/PrintFunctionNames/CMakeLists.txt
@@ -2,6 +2,34 @@ set(MODULE TRUE)
set(LLVM_NO_RTTI 1)
+set( LLVM_USED_LIBS
+ clangFrontendTool
+ clangFrontend
+ clangDriver
+ clangSerialization
+ clangCodeGen
+ clangParse
+ clangSema
+ clangChecker
+ clangAnalysis
+ clangIndex
+ clangRewrite
+ clangAST
+ clangLex
+ clangBasic
+ )
+
+# Why do we have to link to all this just to print out function names?
+set( LLVM_LINK_COMPONENTS
+ ${LLVM_TARGETS_TO_BUILD}
+ asmparser
+ bitreader
+ bitwriter
+ codegen
+ ipo
+ selectiondag
+ )
+
add_clang_library(PrintFunctionNames PrintFunctionNames.cpp)
set_target_properties(PrintFunctionNames
OpenPOWER on IntegriCloud