libxx: Make HAVE_CXXINITIALIZE workable even HAVE_CXX isn't enabled
since this infrastructure is also used in no c++ case(e.g. gcov) Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
parent
b19b931722
commit
c1082f04d3
@ -283,7 +283,6 @@ config ARCH_SIZET_LONG
|
||||
|
||||
config ARCH_COVERAGE
|
||||
bool "Enable code coverage analysis"
|
||||
select HAVE_CXX
|
||||
select HAVE_CXXINITIALIZE
|
||||
default n
|
||||
---help---
|
||||
|
@ -20,6 +20,14 @@ config HAVE_CXX
|
||||
Toolchain supports C++ and CXX, CXXFLAGS, and COMPILEXX have been
|
||||
defined in the configurations Make.defs file.
|
||||
|
||||
config HAVE_CXXINITIALIZE
|
||||
bool "Have C++ initialization"
|
||||
default n
|
||||
---help---
|
||||
The platform-specific logic includes support for initialization
|
||||
of static C++ instances for this architecture and for the selected
|
||||
toolchain.
|
||||
|
||||
if HAVE_CXX
|
||||
|
||||
choice
|
||||
@ -35,6 +43,7 @@ config LIBCXXMINI
|
||||
|
||||
config LIBCXX
|
||||
bool "LLVM libc++ C++ Standard Library"
|
||||
select HAVE_CXXINITIALIZE
|
||||
select LIBC_WCHAR
|
||||
select LIBC_LOCALE
|
||||
---help---
|
||||
@ -43,6 +52,7 @@ config LIBCXX
|
||||
|
||||
config UCLIBCXX
|
||||
bool "uClibc++ Standard C++ Library"
|
||||
select HAVE_CXXINITIALIZE
|
||||
---help---
|
||||
uClibc++ C++ library
|
||||
https://cxx.uclibc.org/
|
||||
@ -72,14 +82,6 @@ endchoice
|
||||
|
||||
endif
|
||||
|
||||
config HAVE_CXXINITIALIZE
|
||||
bool "Have C++ initialization"
|
||||
default LIBCXX || UCLIBCXX
|
||||
---help---
|
||||
The platform-specific logic includes support for initialization
|
||||
of static C++ instances for this architecture and for the selected
|
||||
toolchain (via up_cxxinitialize()).
|
||||
|
||||
config CXX_EXCEPTION
|
||||
bool "Enable Exception Support"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user