diff --git a/llvm/runtime/libprofile/CMakeLists.txt b/llvm/runtime/libprofile/CMakeLists.txt index 414ad00b4a80..8609715b33f0 100644 --- a/llvm/runtime/libprofile/CMakeLists.txt +++ b/llvm/runtime/libprofile/CMakeLists.txt @@ -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" )