diff options
author | Chris Bieneman <beanz@apple.com> | 2015-08-18 17:32:18 +0000 |
---|---|---|
committer | Chris Bieneman <beanz@apple.com> | 2015-08-18 17:32:18 +0000 |
commit | 607a4f74727d6e4140e3a957aaaaf9d0666ce667 (patch) | |
tree | fdf7ee5646c00852a27385b7f50cc5ddf0763f11 /lib/ubsan/CMakeLists.txt | |
parent | 5708a2383ea388510464a12c9c708b224d492e74 (diff) |
[CMake] Refactoring add_compiler_rt functions for darwin runtimes.
Summary: This patch consolidates add_compiler_rt_osx_static_runtime and add_compiler_rt_darwin_dynamic_runtime into a single new function add_compiler_rt_darwin_runtime.
Reviewers: filcab, samsonov, bogner
Subscribers: llvm-commits
Differential Revision: http://reviews.llvm.org/D12106
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@245317 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/ubsan/CMakeLists.txt')
-rw-r--r-- | lib/ubsan/CMakeLists.txt | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/ubsan/CMakeLists.txt b/lib/ubsan/CMakeLists.txt index 246236b78..0464c63b2 100644 --- a/lib/ubsan/CMakeLists.txt +++ b/lib/ubsan/CMakeLists.txt @@ -50,7 +50,8 @@ if(APPLE) SOURCES ${UBSAN_STANDALONE_SOURCES} CFLAGS ${UBSAN_STANDALONE_CFLAGS}) foreach(os ${SANITIZER_COMMON_SUPPORTED_OS}) - add_compiler_rt_darwin_dynamic_runtime(clang_rt.ubsan_${os}_dynamic ${os} + add_compiler_rt_darwin_runtime(clang_rt.ubsan_${os}_dynamic ${os} + SHARED ARCHS ${UBSAN_SUPPORTED_ARCH} SOURCES $<TARGET_OBJECTS:RTUbsan.${os}> $<TARGET_OBJECTS:RTUbsan_standalone.${os}> |