Add add_clang_runtime_shared_library() CMake function and use it to put the shared ASan runtime in the appropriate place.
llvm-svn: 162546
This commit is contained in:
parent
64fea5fc8f
commit
d79d80b4a0
|
@ -19,6 +19,10 @@ function(add_clang_runtime_static_library)
|
||||||
set_target_properties(${ARGN} PROPERTIES
|
set_target_properties(${ARGN} PROPERTIES
|
||||||
ARCHIVE_OUTPUT_DIRECTORY ${CLANG_RUNTIME_LIB_DIR})
|
ARCHIVE_OUTPUT_DIRECTORY ${CLANG_RUNTIME_LIB_DIR})
|
||||||
endfunction()
|
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
|
# First, add the subdirectories which contain feature-based runtime libraries
|
||||||
# and several convenience helper libraries.
|
# and several convenience helper libraries.
|
||||||
|
|
|
@ -116,6 +116,7 @@ if(APPLE)
|
||||||
LINK_FLAGS "-framework Foundation")
|
LINK_FLAGS "-framework Foundation")
|
||||||
list(APPEND ASAN_DYNAMIC_RUNTIME_LIBRARIES clang_rt.asan_osx_dynamic)
|
list(APPEND ASAN_DYNAMIC_RUNTIME_LIBRARIES clang_rt.asan_osx_dynamic)
|
||||||
endif()
|
endif()
|
||||||
|
add_clang_runtime_shared_library(${ASAN_DYNAMIC_RUNTIME_LIBRARIES})
|
||||||
|
|
||||||
|
|
||||||
if(LLVM_INCLUDE_TESTS)
|
if(LLVM_INCLUDE_TESTS)
|
||||||
|
|
Loading…
Reference in New Issue