[libc++] Fix check for _LIBCPP_HAS_NO_WIDE_CHARACTERS in features.py … · llvm/llvm-project@b8e10ca (original) (raw)
Navigation Menu
- GitHub Copilot Write better code with AI
- GitHub Models New Manage and compare prompts
- GitHub Advanced Security Find and fix vulnerabilities
- Actions Automate any workflow
- Codespaces Instant dev environments
- Issues Plan and track work
- Code Review Manage code changes
- Discussions Collaborate outside of code
- Code Search Find more, search less
- Explore
- Pricing
Provide feedback
Saved searches
Use saved searches to filter your results more quickly
Appearance settings
Commit b8e10ca
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 | ) |