[libcxx-commits] [PATCH] D140946: [libcxx] Fix build with GLIBC

Vitaly Buka via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Tue Jan 3 19:32:09 PST 2023


vitalybuka created this revision.
Herald added a project: All.
vitalybuka requested review of this revision.
Herald added a project: libc++.
Herald added a subscriber: libcxx-commits.
Herald added a reviewer: libc++.

Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D140946

Files:
  libcxx/include/__verbose_abort


Index: libcxx/include/__verbose_abort
===================================================================
--- libcxx/include/__verbose_abort
+++ libcxx/include/__verbose_abort
@@ -25,7 +25,11 @@
 // dependency-free (this is included everywhere else in the library).
 #if defined(_LIBCPP_HAS_NO_VERBOSE_ABORT_IN_LIBRARY) && !defined(_LIBCPP_AVAILABILITY_CUSTOM_VERBOSE_ABORT_PROVIDED)
 
+#if defined(__GLIBC__)
+extern "C" void abort() __attribute__ ((__nothrow__));
+#else
 extern "C" void abort();
+#endif
 
 _LIBCPP_BEGIN_NAMESPACE_STD
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D140946.486148.patch
Type: text/x-patch
Size: 540 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20230104/2f48f6c2/attachment-0001.bin>


More information about the libcxx-commits mailing list