[libcxx-commits] [PATCH] D150825: [libcxxabi] allow downstreams to override _LIBCPP_VERBOSE_ABORT

Nick Desaulniers via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Thu May 18 14:03:18 PDT 2023


This revision was automatically updated to reflect the committed changes.
Closed by commit rG913844f55ac4: [libcxxabi] allow downstreams to override _LIBCPP_VERBOSE_ABORT (authored by nickdesaulniers).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D150825/new/

https://reviews.llvm.org/D150825

Files:
  libcxxabi/src/demangle/DemangleConfig.h


Index: libcxxabi/src/demangle/DemangleConfig.h
===================================================================
--- libcxxabi/src/demangle/DemangleConfig.h
+++ libcxxabi/src/demangle/DemangleConfig.h
@@ -11,11 +11,14 @@
 #ifndef LIBCXXABI_DEMANGLE_DEMANGLE_CONFIG_H
 #define LIBCXXABI_DEMANGLE_DEMANGLE_CONFIG_H
 
-// Must be defined before pulling in headers from libc++.
+// Must be defined before pulling in headers from libc++. Allow downstream
+// build systems to override this value.
 // https://libcxx.llvm.org/UsingLibcxx.html#enabling-the-safe-libc-mode
+#ifndef _LIBCPP_VERBOSE_ABORT
 #define _LIBCPP_VERBOSE_ABORT(...) abort_message(__VA_ARGS__)
-
 #include "../abort_message.h"
+#endif
+
 #include <ciso646>
 
 #ifdef _MSC_VER


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D150825.523549.patch
Type: text/x-patch
Size: 743 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20230518/b5b89fe9/attachment.bin>


More information about the libcxx-commits mailing list