libcxx: supports CXX_MINI_LOCALIZATION

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 <v-zhangxiaomeng5@xiaomi.com>
This commit is contained in:
v-zhangxiaomeng5
2026-01-12 23:02:58 +08:00
committed by Xiang Xiao
parent ba63a4d234
commit 6ce6af9004
4 changed files with 17 additions and 4 deletions
+1 -1
View File
@@ -119,7 +119,7 @@ if(CONFIG_LIBCXX)
list(REMOVE_ITEM SRCS ${SRCSTMP})
endif()
if(NOT CONFIG_CXX_LOCALIZATION)
if(CONFIG_CXX_NO_LOCALIZATION)
file(
GLOB
SRCSTMP
+1 -1
View File
@@ -89,7 +89,7 @@ ifeq ($(shell [ $(CPP_STD_VER) -le 14 ] && echo true),true)
CPPSRCS := $(filter-out $(EXCLUDE_FILES), $(CPPSRCS))
endif
ifeq ($(CONFIG_CXX_LOCALIZATION),)
ifeq ($(CONFIG_CXX_NO_LOCALIZATION),y)
LOCALE_CPPSRCS := libcxx/libcxx/src/ios.cpp
LOCALE_CPPSRCS += libcxx/libcxx/src/ios.instantiations.cpp
LOCALE_CPPSRCS += libcxx/libcxx/src/iostream.cpp