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 [], ), )