[llvm-commits] [llvm] r130191 - in /llvm/trunk: CMakeLists.txt runtime/CMakeLists.txt runtime/libprofile/CMakeLists.txt
Nick Lewycky
nicholas at mxc.ca
Mon Apr 25 22:48:41 PDT 2011
Author: nicholas
Date: Tue Apr 26 00:48:41 2011
New Revision: 130191
URL: http://llvm.org/viewvc/llvm-project?rev=130191&view=rev
Log:
Add cmakefiles to build profile_rt.so!
Added:
llvm/trunk/runtime/CMakeLists.txt
llvm/trunk/runtime/libprofile/CMakeLists.txt
Modified:
llvm/trunk/CMakeLists.txt
Modified: llvm/trunk/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/CMakeLists.txt?rev=130191&r1=130190&r2=130191&view=diff
==============================================================================
--- llvm/trunk/CMakeLists.txt (original)
+++ llvm/trunk/CMakeLists.txt Tue Apr 26 00:48:41 2011
@@ -227,6 +227,13 @@
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 @@
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)
Added: llvm/trunk/runtime/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/runtime/CMakeLists.txt?rev=130191&view=auto
==============================================================================
--- llvm/trunk/runtime/CMakeLists.txt (added)
+++ llvm/trunk/runtime/CMakeLists.txt Tue Apr 26 00:48:41 2011
@@ -0,0 +1 @@
+add_subdirectory(libprofile)
Added: llvm/trunk/runtime/libprofile/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/runtime/libprofile/CMakeLists.txt?rev=130191&view=auto
==============================================================================
--- llvm/trunk/runtime/libprofile/CMakeLists.txt (added)
+++ llvm/trunk/runtime/libprofile/CMakeLists.txt Tue Apr 26 00:48:41 2011
@@ -0,0 +1,9 @@
+add_llvm_loadable_module( profile_rt
+ BasicBlockTracing.c
+ CommonProfiling.c
+ GCDAProfiling.c
+ PathProfiling.c
+ EdgeProfiling.c
+ OptimalEdgeProfiling.c
+ Profiling.h
+ )
More information about the llvm-commits
mailing list