2018-10-24 00:20:51 +08:00
|
|
|
# Kconfig - C++ configuration options
|
|
|
|
|
|
|
|
#
|
|
|
|
# Copyright (c) 2018 B. Leforestier
|
|
|
|
#
|
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
#
|
|
|
|
|
2019-05-16 05:01:58 +08:00
|
|
|
menuconfig CPLUSPLUS
|
|
|
|
bool "C++ support for the application"
|
2018-10-24 00:20:51 +08:00
|
|
|
help
|
|
|
|
This option enables the use of applications built with C++.
|
|
|
|
|
2019-05-16 05:01:58 +08:00
|
|
|
if CPLUSPLUS
|
|
|
|
|
2018-10-24 00:20:51 +08:00
|
|
|
choice
|
|
|
|
prompt "C++ Standard"
|
|
|
|
default STD_CPP11
|
|
|
|
help
|
|
|
|
C++ Standards.
|
|
|
|
|
|
|
|
config STD_CPP98
|
|
|
|
bool "C++ 98"
|
|
|
|
help
|
|
|
|
1998 C++ standard as modified by the 2003 technical corrigendum
|
|
|
|
and some later defect reports.
|
|
|
|
|
|
|
|
config STD_CPP11
|
|
|
|
bool "C++ 11"
|
|
|
|
help
|
|
|
|
2011 C++ standard, previously known as C++0x.
|
|
|
|
|
|
|
|
config STD_CPP14
|
|
|
|
bool "C++ 14"
|
|
|
|
help
|
|
|
|
2014 C++ standard.
|
|
|
|
|
|
|
|
config STD_CPP17
|
|
|
|
bool "C++ 17"
|
|
|
|
help
|
|
|
|
2017 C++ standard, previously known as C++0x.
|
|
|
|
|
|
|
|
config STD_CPP2A
|
|
|
|
bool "C++ 2a"
|
|
|
|
help
|
|
|
|
Next revision of the C++ standard, which is expected to be published in 2020.
|
|
|
|
|
|
|
|
endchoice
|
|
|
|
|
|
|
|
config LIB_CPLUSPLUS
|
|
|
|
bool "Link with STD C++ library"
|
|
|
|
help
|
|
|
|
Link with STD C++ Library.
|
|
|
|
|
|
|
|
config EXCEPTIONS
|
|
|
|
bool "Enable C++ exceptions support"
|
2019-05-16 05:01:58 +08:00
|
|
|
select LIB_CPLUSPLUS
|
2019-09-28 03:39:51 +08:00
|
|
|
depends on !MINIMAL_LIBC
|
2018-10-24 00:20:51 +08:00
|
|
|
help
|
|
|
|
This option enables support of C++ exceptions.
|
|
|
|
|
|
|
|
config RTTI
|
|
|
|
bool "Enable C++ RTTI support"
|
2019-05-16 05:01:58 +08:00
|
|
|
select LIB_CPLUSPLUS
|
2018-10-24 00:20:51 +08:00
|
|
|
help
|
|
|
|
This option enables support of C++ RTTI.
|
|
|
|
|
2019-08-18 08:13:32 +08:00
|
|
|
if LIB_CPLUSPLUS
|
|
|
|
|
|
|
|
config ZEPHYR_CPLUSPLUS
|
|
|
|
bool "Use Zephyr C++ Implementation"
|
|
|
|
help
|
|
|
|
Use Zephyr implementation for operator new, delete, pure virtual
|
|
|
|
functions and vtables.
|
|
|
|
|
2019-11-01 17:24:07 +08:00
|
|
|
endif # LIB_CPLUSPLUS
|
2019-08-18 08:13:32 +08:00
|
|
|
|
2019-05-16 05:01:58 +08:00
|
|
|
endif # CPLUSPLUS
|