From 2cdb0c73eaefd0926d97fc2682199310f4a0ec02 Mon Sep 17 00:00:00 2001 From: Don Isaac Date: Wed, 9 Apr 2025 11:51:35 -0700 Subject: [PATCH] fix verbose_abort (again) --- src/bun.js/bindings/workaround-missing-symbols.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/bun.js/bindings/workaround-missing-symbols.cpp b/src/bun.js/bindings/workaround-missing-symbols.cpp index 9bfab4a67b..eda77bd9f3 100644 --- a/src/bun.js/bindings/workaround-missing-symbols.cpp +++ b/src/bun.js/bindings/workaround-missing-symbols.cpp @@ -238,7 +238,13 @@ extern "C" __attribute__((used)) char __libc_single_threaded = 0; #include #include "headers.h" -void std::__libcpp_verbose_abort(char const* format, ...) _LIBCPP_VERBOSE_ABORT_NOEXCEPT +#ifdef _LIBCPP_VERBOSE_ABORT_NOEXCEPT +#define VERBOSE_ABORT_NOEXCEPT _LIBCPP_VERBOSE_ABORT_NOEXCEPT +#else +#define VERBOSE_ABORT_NOEXCEPT +#endif + +void std::__libcpp_verbose_abort(char const* format, ...) VERBOSE_ABORT_NOEXCEPT { va_list list; va_start(list, format); @@ -249,6 +255,8 @@ void std::__libcpp_verbose_abort(char const* format, ...) _LIBCPP_VERBOSE_ABORT_ Bun__panic(buffer, len); } +#undef VERBOSE_ABORT_NOEXCEPT + #endif #ifndef U_SHOW_CPLUSPLUS_API