llvm-project/libcxx/docs/DesignDocs
Louis Dionne 9b3222f613 [libc++] Make sure we can build libc++ with -fvisibility=hidden
Summary:
When building with -fvisibility=hidden, some symbols do not get exported from
libc++.dylib. This means that some entities are not explicitly given default
visibility in the source code, and that we rely on the fact -fvisibility=default
is the default. This commit explicitly gives default visibility to those
symbols to avoid being dependent on the command line flags used.

The commit also remove symbols from the dylib -- those symbols do not
actually need to be exported from the dylib and this should not be an
ABI break.

Finally, in the future, we may want to mark the whole std:: namespace as
having hidden visibility (to switch from opt-out to opt-in), in which
case the changes done in this commit will be required.

Reviewers: EricWF

Subscribers: mgorny, christof, dexonsmith, libcxx-commits

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

llvm-svn: 345260
2018-10-25 12:13:43 +00:00
..
ABIVersioning.rst
AvailabilityMarkup.rst Fix typos. 2018-02-13 08:12:00 +00:00
CapturingConfigInfo.rst fix some typos in the doc 2018-09-20 08:05:01 +00:00
DebugMode.rst Fix typo in docs 2017-02-05 01:16:25 +00:00
FileTimeType.rst [NFC] Fix grammatical mistakes in libc++ FileTimeType design docs 2018-07-25 13:40:49 +00:00
ThreadingSupportAPI.rst [cmake] Add a config option LIBCXX_HAS_WIN32_THREAD_API for enforcing win32 threads 2018-01-05 20:48:29 +00:00
VisibilityMacros.rst [libc++] Make sure we can build libc++ with -fvisibility=hidden 2018-10-25 12:13:43 +00:00