X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=runtime%2Flibprofile%2FCMakeLists.txt;h=414ad00b4a80d704c8d971ad98dfcb33513bb0f6;hb=8da94ad6e0947690201c543da556ec0396ad9912;hp=92182d7f8ff9f03257af8f520fbd810583229d4e;hpb=e88c724ff09b3d24bcb515b382ded9ee4e885ee5;p=oota-llvm.git diff --git a/runtime/libprofile/CMakeLists.txt b/runtime/libprofile/CMakeLists.txt index 92182d7f8ff..414ad00b4a8 100644 --- a/runtime/libprofile/CMakeLists.txt +++ b/runtime/libprofile/CMakeLists.txt @@ -1,4 +1,4 @@ -add_llvm_loadable_module( profile_rt +set(SOURCES BasicBlockTracing.c CommonProfiling.c GCDAProfiling.c @@ -7,3 +7,13 @@ add_llvm_loadable_module( profile_rt OptimalEdgeProfiling.c Profiling.h ) + +add_llvm_library( profile_rt-static ${SOURCES} ) +set_target_properties( profile_rt-static + PROPERTIES + OUTPUT_NAME "profile_rt" ) + +add_llvm_loadable_module( profile_rt-shared ${SOURCES} ) +set_target_properties( profile_rt-shared + PROPERTIES + OUTPUT_NAME "profile_rt" )