2012-04-06 17:49:35 +02:00
|
|
|
#
|
|
|
|
# For a description of the syntax of this configuration file,
|
2015-06-28 16:08:57 +02:00
|
|
|
# see the file kconfig-language.txt in the NuttX tools repository.
|
2012-04-06 17:49:35 +02:00
|
|
|
#
|
2012-04-11 01:49:13 +02:00
|
|
|
|
2012-11-02 01:22:52 +01:00
|
|
|
comment "Basic CXX Support"
|
|
|
|
|
2012-12-07 17:00:56 +01:00
|
|
|
config C99_BOOL8
|
|
|
|
bool "sizeof(_Bool) is 8-bits"
|
|
|
|
default n
|
|
|
|
---help---
|
|
|
|
This setting means (1) your C++ compiler has sizeof(_Bool) == 8, (2)
|
|
|
|
your C compiler supports the C99 _Bool intrinsic type, and (2) that
|
|
|
|
the C99 _Bool type also has size 1.
|
|
|
|
|
2012-04-07 16:50:57 +02:00
|
|
|
config HAVE_CXX
|
2012-04-11 01:49:13 +02:00
|
|
|
bool "Have C++ compiler"
|
2012-04-07 16:50:57 +02:00
|
|
|
default n
|
|
|
|
---help---
|
2014-04-14 00:22:22 +02:00
|
|
|
Toolchain supports C++ and CXX, CXXFLAGS, and COMPILEXX have been
|
2012-04-11 01:49:13 +02:00
|
|
|
defined in the configurations Make.defs file.
|
2012-04-07 16:50:57 +02:00
|
|
|
|
2012-11-01 22:08:56 +01:00
|
|
|
if HAVE_CXX
|
|
|
|
|
2020-10-27 02:12:57 +01:00
|
|
|
choice
|
|
|
|
prompt "C++ Library"
|
|
|
|
default NUTTX_LIBXX
|
|
|
|
|
|
|
|
config NUTTX_LIBXX
|
|
|
|
bool "NuttX C++ library"
|
|
|
|
---help---
|
|
|
|
A fragmentary C++ library that will allow to build only
|
|
|
|
the simplest of C++ applications. In the deeply embedded world,
|
|
|
|
that is probably all that is necessary.
|
|
|
|
|
|
|
|
config LIBCXX
|
|
|
|
bool "LLVM libc++ C++ Standard Library"
|
|
|
|
select CLOCK_MONOTONIC
|
|
|
|
select LIBC_WCHAR
|
|
|
|
select LIBC_LOCALE
|
|
|
|
---help---
|
|
|
|
LLVM "libc++" C++ Standard Library
|
|
|
|
https://libcxx.llvm.org/
|
|
|
|
|
|
|
|
config UCLIBCXX
|
|
|
|
bool "uClibc++ Standard C++ Library"
|
|
|
|
---help---
|
|
|
|
uClibc++ C++ library
|
|
|
|
https://cxx.uclibc.org/
|
|
|
|
|
|
|
|
endchoice
|
|
|
|
|
2020-06-30 19:58:58 +02:00
|
|
|
config HAVE_CXXINITIALIZE
|
|
|
|
bool "Have C++ initialization"
|
2020-07-08 19:47:18 +02:00
|
|
|
default LIBCXX || UCLIBCXX
|
2020-06-30 19:58:58 +02:00
|
|
|
---help---
|
|
|
|
The platform-specific logic includes support for initialization
|
|
|
|
of static C++ instances for this architecture and for the selected
|
|
|
|
toolchain (via up_cxxinitialize()).
|
|
|
|
|
2019-01-26 18:23:31 +01:00
|
|
|
config CXX_EXCEPTION
|
2020-06-28 17:03:57 +02:00
|
|
|
bool "Enable Exception Support"
|
|
|
|
default LIBCXX || UCLIBCXX
|
2019-01-26 18:23:31 +01:00
|
|
|
|
|
|
|
config CXX_LIBSUPCXX
|
2020-06-28 17:03:57 +02:00
|
|
|
bool "Have libsupc++ (required)"
|
|
|
|
default LIBCXX || UCLIBCXX
|
|
|
|
---help---
|
|
|
|
Select if your toolchain provides libsupc++. This option is required
|
|
|
|
at present because the built-in libsupc++ support is incomplete.
|
2019-01-26 18:23:31 +01:00
|
|
|
|
2012-11-01 22:08:56 +01:00
|
|
|
if UCLIBCXX
|
|
|
|
|
2020-06-27 11:20:25 +02:00
|
|
|
config UCLIBCXX_BUFSIZE
|
|
|
|
int "IO Stream/Container Buffer Size"
|
2012-11-01 22:08:56 +01:00
|
|
|
default 32
|
|
|
|
|
|
|
|
endif
|
|
|
|
endif
|