[libc++abi] Disable libc++ extern templates project-wide
authorShoaib Meenai <smeenai@fb.com>
Wed, 10 May 2017 21:52:39 +0000 (21:52 +0000)
committerShoaib Meenai <smeenai@fb.com>
Wed, 10 May 2017 21:52:39 +0000 (21:52 +0000)
commitf43726cd22b2f2539900b982a79d0186fc0a5543
tree10875b89f193f1e31dec21aa69cca96f8ae0c430
parent86a8df74f50c270d6e699b5ee3940196e595faa6
[libc++abi] Disable libc++ extern templates project-wide

libc++abi can't depend on libc++, so disable extern templates in libc++
headers project-wide. This was previously done in cxa_demangle.cpp, but
I consider it more appropriate to do at the cmake level (since none of
libc++abi's source files can use libc++ extern templates).

I also think the _LIBCPP_NO_EXCEPTIONS in cxa_demangle.cpp is
suspicious, but I'm doing one thing at a time.

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

llvm-svn: 302739
libcxxabi/CMakeLists.txt
libcxxabi/src/cxa_demangle.cpp