rsmith created this revision. rsmith added reviewers: EricWF, mclow.lists. Herald added a subscriber: sanjoy.
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. Repository: rCXXA libc++abi https://reviews.llvm.org/D42987 Files: src/cxa_exception.cpp Index: src/cxa_exception.cpp =================================================================== --- src/cxa_exception.cpp +++ src/cxa_exception.cpp @@ -11,6 +11,8 @@ // //===----------------------------------------------------------------------===// +#define _LIBCPP_BUILDING_LIBRARY + #include "cxxabi.h" #include <exception> // for std::terminate
Index: src/cxa_exception.cpp =================================================================== --- src/cxa_exception.cpp +++ src/cxa_exception.cpp @@ -11,6 +11,8 @@ // //===----------------------------------------------------------------------===// +#define _LIBCPP_BUILDING_LIBRARY + #include "cxxabi.h" #include <exception> // for std::terminate
_______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits