[libc++] Fix check for _LIBCPP_HAS_NO_WIDE_CHARACTERS in features.py … · llvm/llvm-project@b8e10ca (original) (raw)

Skip to content

Provide feedback

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

Commit b8e10ca

ldionnetstellar

authored and

committed

[libc++] Fix check for _LIBCPP_HAS_NO_WIDE_CHARACTERS in features.py (#131675)

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. (cherry picked from commit 297f6d9)

File tree

1 file changed

lines changed

1 file changed

lines changed

Lines changed: 2 additions & 1 deletion

Original file line number Diff line number Diff line change
@@ -440,7 +440,8 @@ def _mingwSupportsModules(cfg):
440 440 cfg, locale, alts, provide_locale_conversions[locale]
441 441 )
442 442 if locale in provide_locale_conversions
443 -and "_LIBCPP_HAS_NO_WIDE_CHARACTERS" not in compilerMacros(cfg)
443 +and ("_LIBCPP_HAS_WIDE_CHARACTERS" not in compilerMacros(cfg) or
444 +compilerMacros(cfg)["_LIBCPP_HAS_WIDE_CHARACTERS"] == "1")
444 445 else [],
445 446 ),
446 447 )