[flang-commits] [flang] flang: Fix build with latest libc++ (PR #127362)

Markus Mützel via flang-commits flang-commits at lists.llvm.org
Mon Feb 17 06:52:41 PST 2025


================
@@ -150,7 +150,12 @@ bool IODEF(OutputLogical)(Cookie cookie, bool truth) {
 // Provide own definition for `std::__libcpp_verbose_abort` to avoid dependency
 // on the version provided by libc++.
 
-void std::__libcpp_verbose_abort(char const *format, ...) {
+#if !defined(_LIBCPP_VERBOSE_ABORT_NOEXCEPT)
+#define _LIBCPP_VERBOSE_ABORT_NOEXCEPT
+#endif
+
+void std::__libcpp_verbose_abort(
+    char const *format, ...) _LIBCPP_VERBOSE_ABORT_NOEXCEPT {
----------------
mmuetzel wrote:

> Is there a reason why you don't link against the libc++ built library?

That is a very good question that I was pondering myself repeatedly.
I hope it is ok to ask @sscalpone for clarification.


https://github.com/llvm/llvm-project/pull/127362


More information about the flang-commits mailing list