summaryrefslogtreecommitdiffstats
path: root/libcxx/docs
diff options
context:
space:
mode:
authorPetr Hosek <phosek@chromium.org>2019-01-06 06:14:31 +0000
committerPetr Hosek <phosek@chromium.org>2019-01-06 06:14:31 +0000
commita2685cd6dcc705351902a7401639eca2190ebd66 (patch)
tree656054bb580eb0e88c7567801cf83348325a7fbd /libcxx/docs
parent5c43496fa303622194d46ce7d2bc34ccc630c8a2 (diff)
downloadbcm5719-llvm-a2685cd6dcc705351902a7401639eca2190ebd66.tar.gz
bcm5719-llvm-a2685cd6dcc705351902a7401639eca2190ebd66.zip
[libcxx] Support building hermetic static library
This is useful when static libc++ library is being linked into shared libraries that may be used in combination with libraries. We want to avoid we exporting libc++ symbols in those cases where this option is useful. This is provided as a CMake option and can be enabled by libc++ vendors as needed. Differential Revision: https://reviews.llvm.org/D55404 llvm-svn: 350489
Diffstat (limited to 'libcxx/docs')
-rw-r--r--libcxx/docs/BuildingLibcxx.rst9
1 files changed, 9 insertions, 0 deletions
diff --git a/libcxx/docs/BuildingLibcxx.rst b/libcxx/docs/BuildingLibcxx.rst
index c40e5fbcc75..a498c0027bd 100644
--- a/libcxx/docs/BuildingLibcxx.rst
+++ b/libcxx/docs/BuildingLibcxx.rst
@@ -222,6 +222,15 @@ libc++ specific options
Define libc++ destination prefix.
+.. option:: LIBCXX_HERMETIC_STATIC_LIBRARY:BOOL
+
+ **Default**: ``OFF``
+
+ Do not export any symbols from the static libc++ library. This is useful when
+ This is useful when the static libc++ 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 any libc++ symbols in that case.
+
.. _libc++experimental options:
libc++experimental Specific Options
OpenPOWER on IntegriCloud