[libc++abi] Add a missing include for abort() (#126865)
This is to fix a build error when we use Clang modules in Chromium.
This commit is contained in:
@@ -9,6 +9,7 @@
|
||||
// new_handler.
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#include <cstdlib> // std::abort
|
||||
#include <exception>
|
||||
#include <new>
|
||||
#include "abort_message.h"
|
||||
@@ -94,7 +95,7 @@ static void demangling_unexpected_handler()
|
||||
static constexpr std::terminate_handler default_terminate_handler = demangling_terminate_handler;
|
||||
static constexpr std::terminate_handler default_unexpected_handler = demangling_unexpected_handler;
|
||||
#else // !LIBCXXABI_SILENT_TERMINATE
|
||||
static constexpr std::terminate_handler default_terminate_handler = ::abort;
|
||||
static constexpr std::terminate_handler default_terminate_handler = std::abort;
|
||||
static constexpr std::terminate_handler default_unexpected_handler = std::terminate;
|
||||
#endif // !LIBCXXABI_SILENT_TERMINATE
|
||||
|
||||
|
||||
Reference in New Issue
Block a user