mirror of
https://github.com/apache/nuttx.git
synced 2026-05-31 14:27:37 +08:00
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:
committed by
Xiang Xiao
parent
ba63a4d234
commit
6ce6af9004
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user