diff options
-rw-r--r-- | compiler-rt/lib/CMakeLists.txt | 4 | ||||
-rw-r--r-- | compiler-rt/lib/asan/CMakeLists.txt | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/compiler-rt/lib/CMakeLists.txt b/compiler-rt/lib/CMakeLists.txt index 72ab9b470d6..4961e2d0c20 100644 --- a/compiler-rt/lib/CMakeLists.txt +++ b/compiler-rt/lib/CMakeLists.txt @@ -19,6 +19,10 @@ function(add_clang_runtime_static_library) set_target_properties(${ARGN} PROPERTIES ARCHIVE_OUTPUT_DIRECTORY ${CLANG_RUNTIME_LIB_DIR}) endfunction() +function(add_clang_runtime_shared_library) + set_target_properties(${ARGN} PROPERTIES + LIBRARY_OUTPUT_DIRECTORY ${CLANG_RUNTIME_LIB_DIR}) +endfunction() # First, add the subdirectories which contain feature-based runtime libraries # and several convenience helper libraries. diff --git a/compiler-rt/lib/asan/CMakeLists.txt b/compiler-rt/lib/asan/CMakeLists.txt index 7f552b07245..d626d3b488e 100644 --- a/compiler-rt/lib/asan/CMakeLists.txt +++ b/compiler-rt/lib/asan/CMakeLists.txt @@ -116,6 +116,7 @@ if(APPLE) LINK_FLAGS "-framework Foundation") list(APPEND ASAN_DYNAMIC_RUNTIME_LIBRARIES clang_rt.asan_osx_dynamic) endif() +add_clang_runtime_shared_library(${ASAN_DYNAMIC_RUNTIME_LIBRARIES}) if(LLVM_INCLUDE_TESTS) |