libprofile: [CMake] Let libprofile_rt be not loadable_module but shared library....
authorNAKAMURA Takumi <geek4civic@gmail.com>
Wed, 29 Aug 2012 00:37:51 +0000 (00:37 +0000)
committerNAKAMURA Takumi <geek4civic@gmail.com>
Wed, 29 Aug 2012 00:37:51 +0000 (00:37 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@162812 91177308-0d34-0410-b5e6-96231b3b80d8

runtime/libprofile/CMakeLists.txt

index 414ad00b4a80d704c8d971ad98dfcb33513bb0f6..8609715b33f008a21ce71f62a422b5638422ebce 100644 (file)
@@ -13,7 +13,8 @@ set_target_properties( profile_rt-static
   PROPERTIES
   OUTPUT_NAME "profile_rt" )
 
-add_llvm_loadable_module( profile_rt-shared ${SOURCES} )
+set(BUILD_SHARED_LIBS ON)
+add_llvm_library( profile_rt-shared ${SOURCES} )
 set_target_properties( profile_rt-shared
   PROPERTIES
   OUTPUT_NAME "profile_rt" )