[libcxx-commits] [PATCH] D116883: [libcxx][test] Auto-detect _LIBCPP_HAS_NO_UNICODE for MSVC STL

Casey Carter via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Sun Jan 9 01:00:49 PST 2022


CaseyCarter created this revision.
CaseyCarter added a reviewer: libc++.
CaseyCarter added a project: libc++.
CaseyCarter requested review of this revision.
Herald added 1 blocking reviewer(s): libc++.

... by examining `_MSVC_EXECUTION_CHARACTER_SET` in the force-include header.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D116883

Files:
  libcxx/test/support/msvc_stdlib_force_include.h


Index: libcxx/test/support/msvc_stdlib_force_include.h
===================================================================
--- libcxx/test/support/msvc_stdlib_force_include.h
+++ libcxx/test/support/msvc_stdlib_force_include.h
@@ -104,4 +104,8 @@
     __pragma(warning(pop))
 #endif // __clang__
 
+#if defined(_MSVC_EXECUTION_CHARACTER_SET) && _MSVC_EXECUTION_CHARACTER_SET != 65001
+#define _LIBCPP_HAS_NO_UNICODE 1
+#endif // defined(_MSVC_EXECUTION_CHARACTER_SET) && _MSVC_EXECUTION_CHARACTER_SET != 65001
+
 #endif // SUPPORT_MSVC_STDLIB_FORCE_INCLUDE_H


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D116883.398401.patch
Type: text/x-patch
Size: 559 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20220109/6044a260/attachment.bin>


More information about the libcxx-commits mailing list