Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

release/18.x: [libc++][modules] Fix disabling Unicode (#81294) #81361

Merged
merged 1 commit into from
Feb 11, 2024

Conversation

llvmbot
Copy link
Collaborator

@llvmbot llvmbot commented Feb 10, 2024

Backport 30cd183

Requested by: @poyaoc97

-DLIBCXX_ENABLE_UNICODE=OFF or -D_LIBCPP_HAS_NO_UNICODE doesn't build
without this change.

(cherry picked from commit 30cd183)
@llvmbot llvmbot requested a review from a team as a code owner February 10, 2024 15:55
@llvmbot llvmbot added this to the LLVM 18.X Release milestone Feb 10, 2024
@llvmbot
Copy link
Collaborator Author

llvmbot commented Feb 10, 2024

@mordante What do you think about merging this PR to the release branch?

@llvmbot llvmbot added the libc++ libc++ C++ Standard Library. Not GNU libstdc++. Not libc++abi. label Feb 10, 2024
@llvmbot
Copy link
Collaborator Author

llvmbot commented Feb 10, 2024

@llvm/pr-subscribers-libcxx

Author: None (llvmbot)

Changes

Backport 30cd183

Requested by: @poyaoc97


Full diff: https://github.com/llvm/llvm-project/pull/81361.diff

1 Files Affected:

  • (modified) libcxx/modules/std/ostream.inc (+3-1)
diff --git a/libcxx/modules/std/ostream.inc b/libcxx/modules/std/ostream.inc
index 8fcbfb4bdc1828..0e0e2d54fe6bae 100644
--- a/libcxx/modules/std/ostream.inc
+++ b/libcxx/modules/std/ostream.inc
@@ -33,8 +33,10 @@ export namespace std {
   using std::println;
 
   using std::vprint_nonunicode;
+#    ifndef _LIBCPP_HAS_NO_UNICODE
   using std::vprint_unicode;
-#  endif // _LIBCPP_STD_VER >= 23
+#    endif // _LIBCPP_HAS_NO_UNICODE
+#  endif   // _LIBCPP_STD_VER >= 23
 
 #endif // _LIBCPP_HAS_NO_LOCALIZATION
 } // namespace std

@tstellar tstellar merged commit 91cb452 into llvm:release/18.x Feb 11, 2024
43 of 44 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
libc++ libc++ C++ Standard Library. Not GNU libstdc++. Not libc++abi.
Projects
Development

Successfully merging this pull request may close these issues.

4 participants