Skip to content

Commit

Permalink
[libc++abi] Add a missing include for abort() (#126865)
Browse files Browse the repository at this point in the history
This is to fix a build error when we use Clang modules in Chromium.
  • Loading branch information
atetubou authored Feb 12, 2025
1 parent 7647f47 commit 75dd411
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion libcxxabi/src/cxa_default_handlers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
// new_handler.
//===----------------------------------------------------------------------===//

#include <cstdlib> // std::abort
#include <exception>
#include <new>
#include "abort_message.h"
Expand Down Expand Up @@ -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

Expand Down

0 comments on commit 75dd411

Please sign in to comment.