summaryrefslogtreecommitdiff
path: root/components/cplusplus
diff options
context:
space:
mode:
authorOuxiaolong <[email protected]>2022-01-09 12:39:51 +0800
committerOuxiaolong <[email protected]>2022-01-09 12:39:51 +0800
commitecba17963ca12e568511edfc056c34720de000b3 (patch)
tree82f44220b5498df4270bd1652360863d583fb69a /components/cplusplus
parentdafa934443fa34137217bf9dd59f486946fa4c1e (diff)
parent10a963b955f1f5c7333c4f1668dd20ff27283e85 (diff)
Merge branch 'master' of github.com:Ouxiaolong/rt-thread
Diffstat (limited to 'components/cplusplus')
-rw-r--r--components/cplusplus/Kconfig2
-rw-r--r--components/cplusplus/cxx_crt_init.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/components/cplusplus/Kconfig b/components/cplusplus/Kconfig
index 3d5757fe42..0877ff9938 100644
--- a/components/cplusplus/Kconfig
+++ b/components/cplusplus/Kconfig
@@ -10,7 +10,7 @@ if RT_USING_CPLUSPLUS
bool "Enable c++11 threading feature support"
default n
select RT_USING_POSIX_FS
- select RT_USING_POSIX_DEVIO
+ select RT_USING_POSIX_STDIO
select RT_USING_PTHREADS
select RT_USING_RTC
diff --git a/components/cplusplus/cxx_crt_init.c b/components/cplusplus/cxx_crt_init.c
index 977dee6ee9..46946089ff 100644
--- a/components/cplusplus/cxx_crt_init.c
+++ b/components/cplusplus/cxx_crt_init.c
@@ -13,7 +13,7 @@
#include <rtthread.h>
-#if defined(__CC_ARM) || defined(__CLANG_ARM)
+#if defined(__ARMCC_VERSION)
extern void $Super$$__cpp_initialize__aeabi_(void);
/* we need to change the cpp_initialize order */
RT_WEAK void $Sub$$__cpp_initialize__aeabi_(void)
@@ -36,7 +36,7 @@ RT_WEAK void *__dso_handle = 0;
RT_WEAK int cplusplus_system_init(void)
{
-#if defined(__CC_ARM) || defined(__CLANG_ARM)
+#if defined(__ARMCC_VERSION)
/* If there is no SHT$$INIT_ARRAY, calling
* $Super$$__cpp_initialize__aeabi_() will cause fault. At least until Keil5.12
* the problem still exists. So we have to initialize the C++ runtime by ourself.