summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNick Lewycky <nicholas@mxc.ca>2011-04-26 05:48:41 +0000
committerNick Lewycky <nicholas@mxc.ca>2011-04-26 05:48:41 +0000
commit68d2218978b922bbb77ffca62c44daea73d1ae37 (patch)
treebcf45ae9788bea16bce41a3782761e108bdfacf8
parent2f6475403144d95b310d4f8f24ffce3830920f20 (diff)
downloadbcm5719-llvm-68d2218978b922bbb77ffca62c44daea73d1ae37.tar.gz
bcm5719-llvm-68d2218978b922bbb77ffca62c44daea73d1ae37.zip
Add cmakefiles to build profile_rt.so!
llvm-svn: 130191
-rw-r--r--llvm/CMakeLists.txt9
-rw-r--r--llvm/runtime/CMakeLists.txt1
-rw-r--r--llvm/runtime/libprofile/CMakeLists.txt9
3 files changed, 18 insertions, 1 deletions
diff --git a/llvm/CMakeLists.txt b/llvm/CMakeLists.txt
index 48cd55b0954..38a9f2b227b 100644
--- a/llvm/CMakeLists.txt
+++ b/llvm/CMakeLists.txt
@@ -227,6 +227,13 @@ if( LLVM_INCLUDE_TOOLS )
add_subdirectory(tools)
endif()
+option(LLVM_BUILD_RUNTIME
+ "Build the LLVM runtime libraries. If OFF, just generate build targets." OFF)
+option(LLVM_INCLUDE_RUNTIME "Generate build targets for the LLVM runtimes" ON)
+if( LLVM_INCLUDE_RUNTIME )
+ add_subdirectory(runtime)
+endif()
+
option(LLVM_BUILD_EXAMPLES
"Build the LLVM example programs. If OFF, just generate build targets." OFF)
option(LLVM_INCLUDE_EXAMPLES "Generate build targets for the LLVM examples" ON)
@@ -235,7 +242,7 @@ if( LLVM_INCLUDE_EXAMPLES )
endif()
option(LLVM_BUILD_TESTS
- "Build LLVM unit tests. If OFF, just generate build targes." OFF)
+ "Build LLVM unit tests. If OFF, just generate build targets." OFF)
if( LLVM_INCLUDE_TESTS )
add_subdirectory(test)
add_subdirectory(utils/unittest)
diff --git a/llvm/runtime/CMakeLists.txt b/llvm/runtime/CMakeLists.txt
new file mode 100644
index 00000000000..bcdaf8427b5
--- /dev/null
+++ b/llvm/runtime/CMakeLists.txt
@@ -0,0 +1 @@
+add_subdirectory(libprofile)
diff --git a/llvm/runtime/libprofile/CMakeLists.txt b/llvm/runtime/libprofile/CMakeLists.txt
new file mode 100644
index 00000000000..92182d7f8ff
--- /dev/null
+++ b/llvm/runtime/libprofile/CMakeLists.txt
@@ -0,0 +1,9 @@
+add_llvm_loadable_module( profile_rt
+ BasicBlockTracing.c
+ CommonProfiling.c
+ GCDAProfiling.c
+ PathProfiling.c
+ EdgeProfiling.c
+ OptimalEdgeProfiling.c
+ Profiling.h
+ )
OpenPOWER on IntegriCloud