Fix compilation in C++17 mode.
authorRichard Smith <richard-llvm@metafoo.co.uk>
Wed, 7 Feb 2018 23:23:23 +0000 (23:23 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Wed, 7 Feb 2018 23:23:23 +0000 (23:23 +0000)
commit8e6107a0e49940646d08e5d703d2d128000bcdea
treeaea807635bcee314026bb27b1fd402bc96cf79b2
parentdee75682c88011971ab39b861d32f1c4a826661a
Fix compilation in C++17 mode.

C++17 removes `std::unexpected_handler`, but libc++abi needs it to define
`__cxa_exception`. When building against libc++, this is easily rectified by
telling libc++ we're building the library. We already do this in the other
places where we need these symbols.

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

llvm-svn: 324542
libcxxabi/src/cxa_exception.cpp