[libcxx-commits] [libcxx] [openmp] [libc++] basic_ios<wchar_t> cannot store fill character WCHAR_MAX (PR #89305)

Louis Dionne via libcxx-commits libcxx-commits at lists.llvm.org
Thu Jul 4 12:03:41 PDT 2024


================
@@ -108,6 +116,10 @@
 #  if defined(__FreeBSD__) && __FreeBSD__ < 14
 #    define _LIBCPP_DEPRECATED_ABI_DISABLE_PAIR_TRIVIAL_COPY_CTOR
 #  endif
+// AIX and 64-bit MVS must use _FillHelper for ABI backward compatibility.
+#  if defined(_AIX) || (defined(__MVS__) && defined(__64BIT__))
+#    define _LIBCXX_IOS_USE_FILL_HELPER
+#  endif
----------------
ldionne wrote:

Let's instead set up these ABI macros in the CMake caches you use when building for AIX. We support the `LIBCXX_ABI_DEFINES` CMake variable for that purpose.

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


More information about the libcxx-commits mailing list