diff options
| author | Huang Ziyang <[email protected]> | 2026-09-10 16:24:42 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2026-09-10 16:24:42 +0800 |
| commit | 19e0c42b249e98ebcf870032a4ae073270ef16ee (patch) | |
| tree | c4cb43d7b3c60b8b0022a3b0b7637160eecc4187 /components/libc/cplusplus/Kconfig | |
| parent | 13f0448c2df1c8243e1ab4e666d7e1f83c5bd671 (diff) | |
补充 components\utilities\libadt中Kconfig的help内容#10960copilot/update-kconfig-help-descriptions
Diffstat (limited to 'components/libc/cplusplus/Kconfig')
| -rw-r--r-- | components/libc/cplusplus/Kconfig | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/components/libc/cplusplus/Kconfig b/components/libc/cplusplus/Kconfig index 1dcc6f389c..c7420c4d5e 100644 --- a/components/libc/cplusplus/Kconfig +++ b/components/libc/cplusplus/Kconfig @@ -1,6 +1,13 @@ menuconfig RT_USING_CPLUSPLUS bool "Enable C++ features" default n + help + RT_USING_CPLUSPLUS is the master switch for enabling C++ support. + + It is off by default. Once enabled, RT-Thread's build system ensures that a C++ compiler is used to compile .cpp files, + and it links C++ standard libraries (such as libstdc++ or libc++) into the final firmware. + Other C++-related configuration items that depend on it become visible and configurable. + if RT_USING_CPLUSPLUS @@ -11,13 +18,26 @@ if RT_USING_CPLUSPLUS select RT_USING_POSIX_STDIO select RT_USING_PTHREADS select RT_USING_RTC + help + RT_USING_CPLUSPLUS11 controls whether support for multithreading features in the C++11 standard is enabled. + + It is disabled by default. Once enabled, RT_USING_POSIX_FS, RT_USING_POSIX_STDIO, RT_USING_PTHREADS, and RT_USING_RTC will also be enabled. config RT_USING_CPP_WRAPPER bool "Enable RT-Thread APIs C++ wrapper" default n + help + RT_USING_CPP_WRAPPER is used to enable the C++ wrapper for the RT-Thread core API. + When this option is enabled (Off by default), RT-Thread provides an additional set of C++ code that encapsulates the underlying C API using classes and objects. config RT_USING_CPP_EXCEPTIONS bool "Enable C++ exceptions (will increase overhead)" default n + help + RT_USING_CPP_EXCEPTIONS is used to enable C++ exception handling. + It is disabled by default. Enabling this option pulls in the C++ exception runtime support, which typically increases + code size (flash/ROM usage), RAM consumption, and may add extra runtime overhead for stack unwinding and exception + bookkeeping. On resource-constrained or strict real-time systems, this additional overhead should be evaluated carefully + before turning the option on. endif |
