[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:
Takuto Ikuta
2025-02-12 22:18:02 +09:00
committed by GitHub
parent 7647f478c3
commit 75dd4119b2

View File

@@ -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