[libcxxabi] Support building hermetic static library
authorPetr Hosek <phosek@chromium.org>
Thu, 24 Jan 2019 03:18:29 +0000 (03:18 +0000)
committerPetr Hosek <phosek@chromium.org>
Thu, 24 Jan 2019 03:18:29 +0000 (03:18 +0000)
commit8807db320988f953b2d8d4859fe012955e63ba66
tree45d6d46f9210cad5fbf5a843e7e1e5b07e2f1799
parent8c84e00c71f341d1e4bf0331f1a4b78879fe7f14
[libcxxabi] Support building hermetic static library

This is useful when the static libc++abi library is being linked into
shared libraries that may be used in with other shared libraries that
use different C++ library. We want to avoid avoid exporting libc++abi
or libc++ symbols in those cases. This achieved by a new CMake option
which can be enabled by libc++abi vendors as needed.

Differential Revision: https://reviews.llvm.org/D56026

llvm-svn: 352017
libcxxabi/CMakeLists.txt
libcxxabi/cmake/Modules/HandleLibcxxabiFlags.cmake
libcxxabi/src/CMakeLists.txt