[libcxx-commits] [libcxx] [libc++][z/OS] Move z/OS to new locale API and resolve all name collisions (PR #165428)

Louis Dionne via libcxx-commits libcxx-commits at lists.llvm.org
Tue Oct 28 16:42:33 PDT 2025


================
@@ -121,13 +124,15 @@
 #    include <__locale_dir/support/fuchsia.h>
 #  elif defined(__linux__)
 #    include <__locale_dir/support/linux.h>
+#  elif defined(__MVS__)
+#    include <__locale_dir/support/zos.h>
 #  else
 
 // TODO: This is a temporary definition to bridge between the old way we defined the locale base API
 //       (by providing global non-reserved names) and the new API. As we move individual platforms
 //       towards the new way of defining the locale base API, this should disappear since each platform
 //       will define those directly.
-#    if defined(_AIX) || defined(__MVS__)
+#    if defined(_AIX)
----------------
ldionne wrote:

What about AIX? z/OS is technically not officially supported since we don't have CI for it. In practice, as long as it uses basically the same code as AIX, I'm fine with shoving that under the rug, but we should migrate AIX to the new locale API as well in this PR to avoid introducing a chunk of z/OS-only code.

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


More information about the libcxx-commits mailing list