diff options
author | Nick Lewycky <nicholas@mxc.ca> | 2011-04-26 05:48:41 +0000 |
---|---|---|
committer | Nick Lewycky <nicholas@mxc.ca> | 2011-04-26 05:48:41 +0000 |
commit | e88c724ff09b3d24bcb515b382ded9ee4e885ee5 (patch) | |
tree | 4ece0d39540f58da1768fc00bad93e907c79c497 | |
parent | b16d06f88a81a5163e0caffad4bb268a8e1d0204 (diff) | |
download | external_llvm-e88c724ff09b3d24bcb515b382ded9ee4e885ee5.zip external_llvm-e88c724ff09b3d24bcb515b382ded9ee4e885ee5.tar.gz external_llvm-e88c724ff09b3d24bcb515b382ded9ee4e885ee5.tar.bz2 |
Add cmakefiles to build profile_rt.so!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@130191 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | CMakeLists.txt | 9 | ||||
-rw-r--r-- | runtime/CMakeLists.txt | 1 | ||||
-rw-r--r-- | runtime/libprofile/CMakeLists.txt | 9 |
3 files changed, 18 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 48cd55b..38a9f2b 100644 --- a/CMakeLists.txt +++ b/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/runtime/CMakeLists.txt b/runtime/CMakeLists.txt new file mode 100644 index 0000000..bcdaf84 --- /dev/null +++ b/runtime/CMakeLists.txt @@ -0,0 +1 @@ +add_subdirectory(libprofile) diff --git a/runtime/libprofile/CMakeLists.txt b/runtime/libprofile/CMakeLists.txt new file mode 100644 index 0000000..92182d7 --- /dev/null +++ b/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 + ) |