Skip to content

Commit 6ef4ac6

Browse files
committed
为c++增加 rt-thread 多线程支持的子开关
更新脚本 还原time.h
1 parent edaa0d9 commit 6ef4ac6

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

components/libc/cplusplus/Kconfig

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ menuconfig RT_USING_CPLUSPLUS
44

55
if RT_USING_CPLUSPLUS
66

7+
config RT_USING_CPP_MULTITHREAD
8+
bool "Enable RT-Thread C++ thread feature support"
9+
default n
10+
711
config RT_USING_CPLUSPLUS11
812
bool "Enable c++11 threading feature support"
913
default n

components/libc/cplusplus/SConscript

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,14 @@
33
from building import *
44
Import('rtconfig')
55

6-
cwd = GetCurrentDir()
7-
src = Glob('*.cpp') + Glob('*.c')
6+
cwd = GetCurrentDir()
7+
src = Split('''
8+
cxx_crt_init.c
9+
''')
810
CPPPATH = [cwd]
911

12+
if GetDepend('RT_USING_CPP_MULTITHREAD'):
13+
src += Glob('*.cpp')
1014
if GetDepend('RT_USING_CPLUSPLUS11'):
1115
src += Glob('cpp11/*.cpp') + Glob('cpp11/*.c')
1216
if rtconfig.PLATFORM in ['armclang']:

0 commit comments

Comments
 (0)