From 75dd4119b2798a53241089f77922a2e13ead6b94 Mon Sep 17 00:00:00 2001 From: Takuto Ikuta Date: Wed, 12 Feb 2025 22:18:02 +0900 Subject: [PATCH] [libc++abi] Add a missing include for abort() (#126865) This is to fix a build error when we use Clang modules in Chromium. --- libcxxabi/src/cxa_default_handlers.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libcxxabi/src/cxa_default_handlers.cpp b/libcxxabi/src/cxa_default_handlers.cpp index b029982ea87c3..97a6765fde8e9 100644 --- a/libcxxabi/src/cxa_default_handlers.cpp +++ b/libcxxabi/src/cxa_default_handlers.cpp @@ -9,6 +9,7 @@ // new_handler. //===----------------------------------------------------------------------===// +#include // std::abort #include #include #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