[libcxx-commits] [libcxxabi] [libcxxabi] Add a missing include for abort() (PR #126865)

Takuto Ikuta via libcxx-commits libcxx-commits at lists.llvm.org
Tue Feb 11 23:11:29 PST 2025


https://github.com/atetubou created https://github.com/llvm/llvm-project/pull/126865

This is to fix a build error when we use Clang modules in Chromium.

>From b4b77c95fcd8449236017f77f36498c2da1b9519 Mon Sep 17 00:00:00 2001
From: Takuto Ikuta <tikuta at google.com>
Date: Wed, 12 Feb 2025 16:10:39 +0900
Subject: [PATCH] [libcxxabi] Add a missing include for abort()

---
 libcxxabi/src/cxa_default_handlers.cpp | 1 +
 1 file changed, 1 insertion(+)

diff --git a/libcxxabi/src/cxa_default_handlers.cpp b/libcxxabi/src/cxa_default_handlers.cpp
index b029982ea87c3..c48563bd44706 100644
--- a/libcxxabi/src/cxa_default_handlers.cpp
+++ b/libcxxabi/src/cxa_default_handlers.cpp
@@ -9,6 +9,7 @@
 // new_handler.
 //===----------------------------------------------------------------------===//
 
+#include <cstdlib>
 #include <exception>
 #include <new>
 #include "abort_message.h"



More information about the libcxx-commits mailing list