[libc++][CMake] Clean up some of the libc++ re-exporting logic
authorLouis Dionne <ldionne@apple.com>
Wed, 20 Mar 2019 18:16:24 +0000 (18:16 +0000)
committerLouis Dionne <ldionne@apple.com>
Wed, 20 Mar 2019 18:16:24 +0000 (18:16 +0000)
commit2d0b4d6bb3c12278d60ef7c957c0dba77d81dc95
tree65daa94c9fef9c1f7d516fe0efb959645ae0d550
parent00b5ecab5d8133fe437cf4668b46cb5d2716447f
[libc++][CMake] Clean up some of the libc++ re-exporting logic

Summary:
This change allows specifying the version of libc++abi's ABI to re-export
when configuring CMake. It also clearly identifies which ABI version of
libc++abi each export file contains.

Finally, it removes hardcoded knowledge about the 10.9 SDK for MacOS,
since that knowledge is not relevant anymore. Indeed, libc++ can't be
built with the toolchain that came with the 10.9 SDK anyway because
the version of Clang it includes is too old (for example if you want
to build a working libc++.dylib, you need bugfixes to visibility
attributes that are only in recent Clangs).

Reviewers: dexonsmith, EricWF

Subscribers: mgorny, christof, jkorous, arphaman, libcxx-commits

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

llvm-svn: 356587
libcxx/CMakeLists.txt
libcxx/cmake/Modules/HandleLibCXXABI.cmake
libcxx/docs/index.rst
libcxx/lib/CMakeLists.txt
libcxx/lib/libc++abi.v1.exp [moved from libcxx/lib/libc++abi.exp with 100% similarity]
libcxx/lib/libc++abi.v2.exp [moved from libcxx/lib/libc++abi2.exp with 100% similarity]
libcxx/lib/libc++sjlj-abi.v1.exp [moved from libcxx/lib/libc++sjlj-abi.exp with 100% similarity]
libcxx/www/index.html