From 303b8c45b468e5f9d13eb2f04e4feeadccec3ae3 Mon Sep 17 00:00:00 2001 From: Louis Dionne Date: Mon, 17 Mar 2025 17:30:45 -0400 Subject: [PATCH] [libc++] Fix check for _LIBCPP_HAS_NO_WIDE_CHARACTERS in features.py The patch that added the new locale Lit features was created before we switched to a 0-1 macro for _LIBCPP_HAS_WIDE_CHARACTERS, leading to that patch referring to the obsolete _LIBCPP_HAS_NO_WIDE_CHARACTERS macro that is never defined nowadays. --- libcxx/utils/libcxx/test/features.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libcxx/utils/libcxx/test/features.py b/libcxx/utils/libcxx/test/features.py index a83dcd16b16f8..10fc4b0afde6b 100644 --- a/libcxx/utils/libcxx/test/features.py +++ b/libcxx/utils/libcxx/test/features.py @@ -440,7 +440,8 @@ def _mingwSupportsModules(cfg): cfg, locale, alts, provide_locale_conversions[locale] ) if locale in provide_locale_conversions - and "_LIBCPP_HAS_NO_WIDE_CHARACTERS" not in compilerMacros(cfg) + and ("_LIBCPP_HAS_WIDE_CHARACTERS" not in compilerMacros(cfg) or + compilerMacros(cfg)["_LIBCPP_HAS_WIDE_CHARACTERS"] == "1") else [], ), )