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

Tom Stellard via flang-commits flang-commits at lists.llvm.org
Tue Feb 18 08:32:13 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 {
----------------
tstellar wrote:

@ldionne I've implemented your suggested fix.

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


More information about the flang-commits mailing list