[libcxx-commits] [libcxx] [libc++][z/OS] Need to define _LIBCPP_HAS_UNICODE to 0 for EBCDIC (PR #119244)
via libcxx-commits
libcxx-commits at lists.llvm.org
Mon Dec 9 10:37:41 PST 2024
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-libcxx
Author: Zibi Sarbinowski (zibi2)
<details>
<summary>Changes</summary>
This PR is needed since EBCDIC does not support UNICODE.
---
Full diff: https://github.com/llvm/llvm-project/pull/119244.diff
1 Files Affected:
- (modified) libcxx/include/__config_site.in (+4)
``````````diff
diff --git a/libcxx/include/__config_site.in b/libcxx/include/__config_site.in
index fc01aaf2d8746e..b575a5de8e0d0b 100644
--- a/libcxx/include/__config_site.in
+++ b/libcxx/include/__config_site.in
@@ -28,7 +28,11 @@
#cmakedefine01 _LIBCPP_HAS_FILESYSTEM
#cmakedefine01 _LIBCPP_HAS_RANDOM_DEVICE
#cmakedefine01 _LIBCPP_HAS_LOCALIZATION
+#if defined(__MVS__) && !defined(__NATIVE_ASCII_F)
+#cmakedefine _LIBCPP_HAS_UNICODE 0
+#else
#cmakedefine01 _LIBCPP_HAS_UNICODE
+#endif
#cmakedefine01 _LIBCPP_HAS_WIDE_CHARACTERS
#cmakedefine _LIBCPP_HAS_NO_STD_MODULES
#cmakedefine01 _LIBCPP_HAS_TIME_ZONE_DATABASE
``````````
</details>
https://github.com/llvm/llvm-project/pull/119244
More information about the libcxx-commits
mailing list