summaryrefslogtreecommitdiffstats
path: root/compiler-rt/CMakeLists.txt
diff options
context:
space:
mode:
authorEvgeniy Stepanov <eugeni.stepanov@gmail.com>2017-08-11 22:28:02 +0000
committerEvgeniy Stepanov <eugeni.stepanov@gmail.com>2017-08-11 22:28:02 +0000
commit3072b539da43e72581d2f032b7503fbffb2666ff (patch)
treeedfd3605a4ca6d9f0da8bcc60a41bab9f8bcbac3 /compiler-rt/CMakeLists.txt
parenteebcc475002de61d99906db2e989fa2e3ae88774 (diff)
downloadbcm5719-llvm-3072b539da43e72581d2f032b7503fbffb2666ff.tar.gz
bcm5719-llvm-3072b539da43e72581d2f032b7503fbffb2666ff.zip
[compiler-rt] Add SANITIZER_CXX_ABI_LIBNAME=libc++ option.
Summary: This is to support Android where libc++abi is part of libc++. Reviewers: srhines, EricWF Subscribers: dberris, mgorny, llvm-commits Differential Revision: https://reviews.llvm.org/D36640 llvm-svn: 310769
Diffstat (limited to 'compiler-rt/CMakeLists.txt')
-rw-r--r--compiler-rt/CMakeLists.txt2
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler-rt/CMakeLists.txt b/compiler-rt/CMakeLists.txt
index 5f277e0db0c..1db04f3a486 100644
--- a/compiler-rt/CMakeLists.txt
+++ b/compiler-rt/CMakeLists.txt
@@ -132,6 +132,8 @@ if (SANITIZER_CXX_ABI_LIBNAME STREQUAL "libcxxabi")
else()
list(APPEND SANITIZER_CXX_ABI_LIBRARY "c++abi")
endif()
+elseif (SANITIZER_CXX_ABI_LIBNAME STREQUAL "libc++")
+ list(APPEND SANITIZER_CXX_ABI_LIBRARY "c++")
elseif (SANITIZER_CXX_ABI_LIBNAME STREQUAL "libstdc++")
append_list_if(COMPILER_RT_HAS_LIBSTDCXX stdc++ SANITIZER_CXX_ABI_LIBRARY)
endif()
OpenPOWER on IntegriCloud