Skip to content

Conversation

@v-zhangxiaomeng5
Copy link

@v-zhangxiaomeng5 v-zhangxiaomeng5 commented Jan 12, 2026

This commit contains changes:

  1. define new C++ locale macros CXX_MINI_LOCALIZATION & CXX_NO_LOCALIZATION
  2. define a new C++ macro _LIBCPP_HAS_MINI_LOCALIZATION for CXX_MINI_LOCALIZATION
  3. update libxx/libcxx/CMakeLists.txt & Make.defs

Summary

Support mini-locale in libcxx to reduce the codesize when c++ locale is enabled.
Now there are 3 kinds of c++ locale:

  1. CXX_NO_LOCALIZATION
  2. CXX_MINI_LOCALIZATION for reducing codesize but with basic ios/regex support
  3. CXX_LOCALIZATION

Impact

If users want to use full c++ locale features, please enable CXX_LOCALIZATION.
If users want to use basic ios/regex features, CXX_MINI_LOCALIZATION is good choice.

Testing

CI test.

This commit contains changes:
1) define new C++ locale macros CXX_MINI_LOCALIZATION & CXX_NO_LOCALIZATION
2) define a new C++ macro _LIBCPP_HAS_MINI_LOCALIZATION for CXX_MINI_LOCALIZATION
3) update libxx/libcxx/CMakeLists.txt & Make.defs

Signed-off-by: v-zhangxiaomeng5 <[email protected]>
@github-actions github-actions bot added Area: OS Components OS Components issues Size: S The size of the change in this PR is small labels Jan 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area: OS Components OS Components issues Size: S The size of the change in this PR is small

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants