summaryrefslogtreecommitdiffstats
path: root/clang
diff options
context:
space:
mode:
authorMichael J. Spencer <bigcheesegs@gmail.com>2010-09-14 06:39:35 +0000
committerMichael J. Spencer <bigcheesegs@gmail.com>2010-09-14 06:39:35 +0000
commit433e9c7f2a2e0ea0a38ddaa6a5ca9a799faa3d73 (patch)
treecb2da6b5fcff6919cd027dfcaebe6df302dcfec6 /clang
parent511dce004ed03f3a9d6e8a3948cc2cc5eb3b4feb (diff)
downloadbcm5719-llvm-433e9c7f2a2e0ea0a38ddaa6a5ca9a799faa3d73.tar.gz
bcm5719-llvm-433e9c7f2a2e0ea0a38ddaa6a5ca9a799faa3d73.zip
PrintFunctionNames: Fix Windows (MSV{S,C} and mingw) build.
llvm-svn: 113835
Diffstat (limited to 'clang')
-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