[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
This commit is contained in:
Evgeniy Stepanov 2017-08-11 22:28:02 +00:00
parent eebcc47500
commit 3072b539da
1 changed files with 2 additions and 0 deletions

View File

@ -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()